MCPcopy Create free account
hub / github.com/Codesire-Deng/co_context / stateful_alloc_example

Function stateful_alloc_example

test/generator_test.cpp:260–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258
259template<typename Allocator>
260co_context::generator<int, void, Allocator>
261stateful_alloc_example(std::allocator_arg_t, Allocator) {
262 co_yield 42;
263}
264
265struct member_coro {
266 co_context::generator<int> f() const { co_yield 42; }

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected