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

Function main

05.21-stdFmtFormatTo0/main.cpp:10–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected