MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / test_constexpr

Function test_constexpr

test/stdexec/algos/factories/test_just_stopped.cpp:26–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25#if !STDEXEC_GCC() || STDEXEC_GCC_VERSION >= 1200
26 constexpr int test_constexpr() noexcept
27 {
28 struct receiver
29 {
30 using receiver_concept = ex::receiver_tag;
31 constexpr void set_stopped() && noexcept
32 {
33 invoked = true;
34 }
35 bool& invoked;
36 };
37 bool invoked = false;
38 auto op = ex::connect(ex::just_stopped(), receiver{invoked});
39 ex::start(op);
40 return invoked;
41 }
42 static_assert(test_constexpr());
43#endif
44

Callers 1

Calls 1

startFunction · 0.50

Tested by

no test coverage detected