编程语言
首页 > 编程语言> > C++ reference containers

C++ reference containers

作者:互联网

 description iteratorscapacityelement accessmodifiersoperations
array线性数组,固定长度 begin/endsizeoperator[]fill 
   rbegin/rendmax_sizeatswap 
   cbegin/cendemptyfront  
   crbegin/crend back  
     data  
vector线性数组,可变长度(constructor)
operator=
begin/endsizeoperator[]assign 
   rbegin/rendmax_sizeatpush_back/ pop_back 
   cbegin/cendresizefrontpush_front/pop_front 
   crbegin/crendcapacitybackinsert 
    emptydataerase 
    reserve swap 
    shrink_to_fit clear 
      emplace 
      emplace_back 
deque//deck 双端队列,
长度可变, 线性
(constructor)
operator=
begin/endsizeoperator[]assign 
   rbegin/rendmax_sizeatpush_back/ pop_back 
   cbegin/cendresizefrontpush_front/pop_front 
   crbegin/crendemptybackinsert 
    shrink_to_fit erase 
      swap 
      clear 
      emplace 
      emplace_front 
      emplace_back 
queueFIFO queue(constructor) emptyfront/backpush/pop 
    size emplace 
      swap 
priority_queue (constructor) emptytoppush/pop 
    size emplace 
      swap 
stackLIFO stack(constructor) emptytoppush/pop 
    size emplace 
      swap 
forward_list单向链表,线性(constructor)
operator=
before_beginemptyfrontassignsplice_after
   begin/endmax_size emplace_frontremove
   cbefore_begin  push_front/pop_frontremove_if
   cbefore/cend  emplace_afterunique
      insert_after/erase_aftermerge
      swapsort
      resizereverse
      clear 
list双向链表, 线性(constructor)
operator=
begin/endemptyfrontassignsplice
   rbegin/rendsizebackemplace_frontremove
   cbegin/cendmax_size push_front/pop_frontremove_if
   crbegin/crend  emplace_backunique
      push_back/ pop_backmerge
      emplacesort
      insertreverse
      erase 
      swap 
      resize 
      clear 
map二叉搜索树(constructor)
operator=
begin/endemptyoperator[]insertfind
   rbegin/rendsizeaterasecount
   cbegin/cendmax_size swaplower_bound/upper_bound
   crbegin/crend  clearequal_range
      empace 
      emplace_hint 
      key_comp 
      value_comp 
multimap允许相同的键      
unordered_map (constructor)
operator=
begin/end operator[]insertfind
   cbegin/cend aterasecount
      swapequal_range
      clear 
      empace 
      emplace_hint 
set二叉搜索树(constructor)
operator=
begin/endempty insertfind
   rbegin/rendsize erasecount
   cbegin/cendmax_size swaplower_bound/upper_bound
   crbegin/crend  clearequal_range
      empace 
      emplace_hint 
      key_comp 
      value_comp 

标签:begin,emplace,reference,back,C++,pop,constructor,operator,containers
来源: https://blog.csdn.net/tanguniang/article/details/116308470