We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee64246 commit b7ad1c4Copy full SHA for b7ad1c4
include/conduit/util/concepts.hpp
@@ -1,7 +1,9 @@
1
#pragma once
2
#include <conduit/util/stdlib_coroutine.hpp>
3
+
4
#include <cstddef>
5
#include <type_traits>
6
+#include <utility>
7
8
namespace conduit {
9
// clang-format off
@@ -72,5 +74,10 @@ concept can_co_return = co_result<Result>
72
74
73
75
template<class Promise>
76
concept awaitable_promise = awaitable<Promise> && co_promise<Promise>;
77
78
+template<class Func, class... Args>
79
+concept invokable_with = requires(Func f, Args... args) {
80
+ { f(std::forward<Args>(args)...) };
81
+};
82
// clang-format on
83
} // namespace conduit
0 commit comments