컨테이너

벡터, 큐, 스택, 우선 순위큐, 리스트, 집합, 맵 등이 있음

예제 : [ 리스트 ] 에 랜덤한 값 10개를 정렬

#include <iostream>
#include <time.h>
#include <list>
using namespace std;

int main()
{
	list<int> values;
	
	strand(time(NULL));
	for(int i = 0; i < 10; i++) {
		values.push_back(rand()%100);
	}
	values.sort();
	
	for(auto& e: values) {
		std::cout << e << " ";
	}
	std::cout << endl;
	return 0;
}

<aside> ➡️ 17 23 27 34 39 41 58 74 97 97

</aside>