MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / main

Function main

05.23-stdFmtFormatTo2/main.cpp:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <vector>
9
10int main()
11{
12 std::vector<char> buffer{'H', 'e', 'l', 'l', 'o', ','};
13 std::format_to(std::back_inserter(buffer), " {}", "World");
14
15 for(const auto& c : buffer) { std::cout << c; }
16
17 std::cout << '\n';
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected