MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / list

Function list

Exercises/Modules/Chapter 19/Soln19_02/Soln19_02.cpp:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14// Output vector elements
15template<typename T>
16void list(const std::vector<T>& values, size_t width = 5)
17{
18 for (auto value : values)
19 std::cout << std::format("{:{}}", value, width);
20 std::cout << std::endl;
21}
22
23int main()
24{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected