常用数据结构

string: 

string substr(int pos , int n) ;
int find(string s , int pos) ;
int find(char c , int pos) ;
int find_first_of(strng s , int pos) ;
int find_first_of(string s , int pos) ;
char back() ;
push_back() ; pop_back();
+=

  

vector:

stack:

empty
top() ;
pop() ;
push() ;

  

queue:

empty() ;
front() ;
pop() ;
push() ;

  

priority_queue:

push
pop
top();

  

map:

count
erase
lower_bound
upper_bound
erase

deque:

push_back
push_front()
pop_back()
pop_front()

  

  

unordered_map:

set:

unordered_set:

list:

begin()
end()
front()
back()
push_front()
pop_front()
push_back()
pop_back()
insert(iterator ,  val)
iterator erase(iterator)

  

posted on 2020-04-13 11:35  景行cmy  阅读(112)  评论(0)    收藏  举报