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

Function strings

test/generator_test.cpp:150–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148// reference = std::string_view
149template<typename Allocator>
150co_context::generator<std::string_view, std::string>
151strings(std::allocator_arg_t, Allocator) {
152 co_yield {};
153 co_yield "start";
154 for (auto sv : string_views()) {
155 co_yield std::string{sv} + '!';
156 }
157 co_yield "end";
158}
159
160// Resulting vector is deduced using ::value_type.
161template<std::ranges::input_range R>

Callers 1

value_type_exampleFunction · 0.85

Calls 1

string_viewsFunction · 0.85

Tested by

no test coverage detected