Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
14
template<random_access_iterator T>
15
void 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
24
void sortedVector()
25
{
Callers
2
sortedVector
Function · 0.70
sortedList
Function · 0.70
Calls
2
begin
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected