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

Function unique_ints

test/generator_test.cpp:134–138  ·  view source on GitHub ↗

value_type = std::unique_ptr reference = std::unique_ptr &&

Source from the content-addressed store, hash-verified

132// value_type = std::unique_ptr<int>
133// reference = std::unique_ptr<int>&&
134co_context::generator<std::unique_ptr<int> &&> unique_ints(const int high) {
135 for (auto i = 0; i < high; ++i) {
136 co_yield std::make_unique<int>(i);
137 }
138}
139
140// value_type = std::string_view
141// reference = std::string_view&&

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected