Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/changkun/modern-cpp-tutorial
/ main
Function
main
code/9/9.1.cpp:3–7 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
#include <list>
2
#include <algorithm>
3
int main() {
4
std::list<int> l = {1, 2, 3};
5
std::sort(l.begin(), l.end());
6
return 0;
7
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected