- Sequence Containers
- Associative Containers
- Special Containers
Sequence Containers
vector
assignment
vecotr<int> nums(__n, __val);
nums.assign(__n, __val);
nums.resize(__new_size, __x);
preallocate
nums.reserve(__n);
attributes
nums.size();
nums.capacity();
elements
nums[0];
nums.front();
nums.back();
nums.push_back();
nums.pop_back();