`
xuning2516
  • 浏览: 7636 次
  • 性别: Icon_minigender_1
  • 来自: 江西
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

C++ container member map

 
阅读更多

本文来自http://www.cplusplus.com/reference/stl/

Member map

This is a comparison chart with the different member functions present on each of the different containers:

Legend:
C++98 C++11
Available since C++98
New in C++11


Sequence containers

<array><vector><deque><forward_list><list>arrayvectordequeforward_listlist
Headers
Members
constructor implicit vector deque forward_list list
destructor implicit ~vector ~deque ~forward_list ~list
operator= implicit operator= operator= operator= operator=
iterators begin begin begin begin begin
before_begin
begin
end end end end end end
rbegin rbegin rbegin rbegin rbegin
rend rend rend rend rend
const iterators begin cbegin cbegin cbegin cbegin
cbefore_begin
cbegin
cend cend cend cend cend cend
crbegin crbegin crbegin crbegin crbegin
crend crend crend crend crend
capacity size size size size size
max_size max_size max_size max_size max_size max_size
empty empty empty empty empty empty
resize resize resize resize resize
shrink_to_fit shrink_to_fit shrink_to_fit
capacity capacity
reserve reserve
element access front front front front front front
back back back back back
operator[] operator[] operator[] operator[]
at at at at
modifiers assign assign assign assign assign
emplace emplace emplace emplace_after emplace
insert insert insert insert_after insert
erase erase erase erase_after erase
emplace_back emplace_back emplace_back emplace_back
push_back push_back push_back push_back
pop_back pop_back pop_back pop_back
emplace_front emplace_front emplace_front emplace_front
push_front push_front push_front push_front
pop_front pop_front pop_front pop_front
clear clear clear clear clear
swap swap swap swap swap swap
list operations splice splice_after splice
remove remove remove
remove_if remove_if remove_if
unique unique unique
merge merge merge
sort sort sort
reverse reverse reverse
observers get_allocator get_allocator get_allocator get_allocator get_allocator
data data data

Associative containers

<set><map><unordered_set><unordered_map>setmultisetmapmultimapunordered_setunordered_multisetunordered_mapunordered_multimap
Headers
Members
constructor set multiset map multimap unordered_set unordered_multiset unordered_map unordered_multimap
destructor ~set ~multiset ~map ~multimap ~unordered_set ~unordered_multiset ~unordered_map ~unordered_multimap
assignment operator= operator= operator= operator= operator= operator= operator= operator=
iterators begin begin begin begin begin begin begin begin begin
end end end end end end end end end
rbegin rbegin rbegin rbegin rbegin
rend rend rend rend rend
const iterators cbegin cbegin cbegin cbegin cbegin cbegin cbegin cbegin cbegin
cend cend cend cend cend cend cend cend cend
crbegin crbegin crbegin crbegin crbegin
crend crend crend crend crend
capacity size size size size size size size size size
max_size max_size max_size max_size max_size max_size max_size max_size max_size
empty empty empty empty empty empty empty empty empty
reserve reserve reserve reserve reserve
element access at at at
operator[] operator[] operator[]
modifiers emplace emplace emplace emplace emplace emplace emplace emplace emplace
emplace_hint emplace_hint emplace_hint emplace_hint emplace_hint emplace_hint emplace_hint emplace_hint emplace_hint
insert insert insert insert insert insert insert insert insert
erase erase erase erase erase erase erase erase erase
clear clear clear clear clear clear clear clear clear
swap swap swap swap swap swap swap swap swap
operations count count count count count count count count count
find find find find find find find find find
equal_range equal_range equal_range equal_range equal_range equal_range equal_range equal_range equal_range
lower_bound lower_bound lower_bound lower_bound lower_bound
upper_bound upper_bound upper_bound upper_bound upper_bound
observers get_allocator get_allocator get_allocator get_allocator get_allocator get_allocator get_allocator get_allocator get_allocator
key_comp key_comp key_comp key_comp key_comp
value_comp value_comp value_comp value_comp value_comp
key_eq key_eq key_eq key_eq key_eq
hash_function hash_function hash_function hash_function hash_function
buckets bucket bucket bucket bucket bucket
bucket_count bucket_count bucket_count bucket_count bucket_count
bucket_size bucket_size bucket_size bucket_size bucket_size
max_bucket_count max_bucket_count max_bucket_count max_bucket_count max_bucket_count
hash policy rehash rehash rehash rehash rehash
load_factor load_factor load_factor load_factor load_factor
max_load_factor max_load_factor max_load_factor max_load_factor max_load_factor
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics