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

Function list

Exercises/Modules/Chapter 19/Soln19_04/Soln19_04.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected