| 148 | // reference = std::string_view |
| 149 | template<typename Allocator> |
| 150 | co_context::generator<std::string_view, std::string> |
| 151 | strings(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. |
| 161 | template<std::ranges::input_range R> |
no test coverage detected