반응형
template <class T, class Alloc = allocator<T>> class vector;
std::vector는 <vector> 헤더파일을 포함하여 사용할 수 있으며,
동적 배열을 표현하고 있어 배열의 크기를 변경할 수 있다.
또한 "std::vector<type T> 변수명;"으로 vector 클래스를 선언할 수 있다.
반응형
'C++' 카테고리의 다른 글
[C++] STL std::sort(begin, end, compareFunction) (0) | 2020.03.07 |
---|---|
[C++] STL std::pair() (0) | 2020.03.07 |
[C++] STL (0) | 2020.03.07 |
[C++] STL std::sort(begin, end) (0) | 2020.03.03 |
[C++] std::cin.ignore() (0) | 2020.02.22 |