MCPcopy Create free account
hub / github.com/boostorg/cobalt / test_data_gen

Function test_data_gen

test/async_for.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18std::array<int, 10> test_data = {1,2,3,4,5,6,7,8,9,0};
19
20cobalt::generator<int> test_data_gen()
21{
22 for (auto & td : test_data)
23 {
24 if (&td == &test_data.back())
25 co_return td;
26 else
27 co_yield td;
28 }
29 co_return -1;
30}
31
32cobalt::generator<int> once_gen()
33{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected