STL container
Sequence container:
-
array
Just like int a[], it’s a simple wrapper. - vector
- front()
- back()
- operator[]
- push_back()
- pop_back();
- deque
- front()
- back()
- operator[]
- push_front()
- push_back()
- pop_front();
- pop_back();
- set
- insert()
- find()
- erase();
Non-sequence container:
- list
Doubly-linked lists.
- front()
- back()
- push_front()
- push_back()
- pop_front();
- pop_back();
- map
- opertor[]
- insert(pair())
- operator[]
- find()
Adaptor
- stack
- top()
- push();
- pop()
- priority_queue(underlying containter: vector)
- top()
- push();
- pop()
- queue (underlying containter: deque)
- front()
- back();
- push()
- pop();
Leave a Comment
Your email address will not be published. Required fields are marked *