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

Function main

05.24-stdFmtFormatToN0/main.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include <string_view>
8
9int main()
10{
11 std::array<char, 10> buffer{};
12 std::format_to_n(
13 buffer.data(), buffer.size() - 1, "{}, {}", "Hello", "World");
14
15 std::cout << buffer.data() << '\n';
16}

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected