mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
8 lines
135 B
C++
8 lines
135 B
C++
#include <list>
|
|
#include <algorithm>
|
|
int main() {
|
|
std::list<int> l = {1, 2, 3};
|
|
std::sort(l.begin(), l.end());
|
|
return 0;
|
|
}
|