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

Function list

Exercises/NoModules/Chapter 19/Soln19_02/Soln19_02.cpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected