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

Function PrintSorted

01.42-printSorted1/main.cpp:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14template<random_access_iterator T>
15void PrintSorted(T c)
16{
17 std::sort(c.begin(), c.end());
18
19 for(const auto& e : c) { std::cout << e << ' '; }
20
21 std::cout << '\n';
22}
23
24void sortedVector()
25{

Callers 2

sortedVectorFunction · 0.70
sortedListFunction · 0.70

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected