stack container c ++ STL containers

Stack: last out.

A constructor

stack<T> stk;
stack<const stack& stk>;

Second, the assignment

stack& operator=(const stack &stk);

3. Data Access

push(ele);
pop();
top();

Fourth, the size of the operation

empty();
size();

Guess you like

Origin www.cnblogs.com/xiximayou/p/12111639.html