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

Function list

Exercises/NoModules/Chapter 19/Soln19_04/Soln19_04.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20// Output vector elements
21template<typename T>
22void list(const std::vector<T>& values, size_t width = 5)
23{
24 for (auto value : values)
25 std::cout << std::format("{:{}}", value, width);
26 std::cout << std::endl;
27}
28
29bool is_palindrome(std::string_view s)
30{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected