std::unordered_multimap::unordered_multimap

来自cppreference.com

 
 
 
的std :: unordered_multimap
成员函数
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unordered_multimap::unordered_multimap
unordered_multimap::~unordered_multimap
unordered_multimap::operator=
unordered_multimap::get_allocator
迭代器
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unordered_multimap::begin
unordered_multimap::cbegin
unordered_multimap::end
unordered_multimap::cend
容量
Original:
Capacity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unordered_multimap::erase
unordered_multimap::size
unordered_multimap::max_size
修饰符
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unordered_multimap::clear
unordered_multimap::insert
unordered_multimap::emplace
unordered_multimap::emplace_hint
unordered_multimap::erase
unordered_multimap::swap
查找
Original:
Lookup
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unordered_multimap::count
unordered_multimap::find
unordered_multimap::equal_range
斗接口
Original:
Bucket interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unordered_multimap::begin2
unordered_multimap::end2
unordered_multimap::bucket_count
unordered_multimap::max_bucket_count
unordered_multimap::bucket_size
unordered_multimap::bucket
哈希政策
Original:
Hash policy
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unordered_multimap::load_factor
unordered_multimap::max_load_factor
unordered_multimap::rehash
unordered_multimap::reserve
观察员
Original:
Observers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
unordered_multimap::hash_function
unordered_multimap::key_eq
 
explicit unordered_multimap( size_type bucket_count = /*implementation-defined*/,

                             const Hash& hash = Hash(),
                             const KeyEqual& equal = KeyEqual(),

                             const Allocator& alloc = Allocator() );
(1) (C++11 起)
explicit unordered_multimap( const Allocator& alloc );
(1) (C++11 起)
template< class InputIt >

unordered_multimap( InputIt first, InputIt last,
                    size_type bucket_count = /*implementation-defined*/,
                    const Hash& hash = Hash(),
                    const KeyEqual& equal = KeyEqual(),

                    const Allocator& alloc = Allocator() );
(2) (C++11 起)
unordered_multimap( const unordered_multimap& other );
(3) (C++11 起)
unordered_multimap( const unordered_multimap& other, const Allocator& alloc );
(3) (C++11 起)
unordered_multimap( unordered_multimap&& other );
(4) (C++11 起)
unordered_multimap( unordered_multimap&& other, const Allocator& alloc );
(4) (C++11 起)
unordered_multimap( std::initializer_list<value_type> init,

                    size_type bucket_count = /*implementation-defined*/,
                    const Hash& hash = Hash(),
                    const KeyEqual& equal = KeyEqual(),

                    const Allocator& alloc = Allocator() );
(5) (C++11 起)
从各种数据源,构建新的容器。可以选择使用最少数量的水桶创建的用户提供bucket_counthash作为散列函数,equal的功能键进行比较和alloc的分配器.
Original:
Constructs new container from a variety of data sources. Optionally uses user supplied bucket_count as a minimal number of buckets to create, hash as the hash function, equal as the function to compare keys and alloc as the allocator.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
默认构造函数。构造空的容器.
Original:
default constructor. Constructs empty container.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
构造的容器的内容的范围内[first, last).
Original:
constructs the container with the contents of the range [first, last).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
拷贝构造函数。副本的内容other构造的容器。 alloc不提供,分配器是通过调用std::allocator_traits<allocator_type>::select_on_copy_construction(other).
Original:
copy constructor. Constructs the container with the copy of the contents of other. If alloc is not provided, allocator is obtained by calling std::allocator_traits<allocator_type>::select_on_copy_construction(other).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
移动的构造函数。构造的容器与内容other使用移动语义。 alloc不提供,分配器是通过移动建设属于other从分配器.
Original:
move constructor. Constructs the container with the contents of other using move semantics. If alloc is not provided, allocator is obtained by move-construction from the allocator belonging to other.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
5)
构建容器初始化列表的内容init
Original:
constructs the container with the contents of the initializer list init.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目录

[编辑] 参数

alloc -
使用这个容器中的所有内存分配的分配器
Original:
allocator to use for all memory allocations of this container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
bucket_count -
在初始化时使用的桶的最小数量。如果它没有被指定,执行定义的缺省值被使用
Original:
minimal number of buckets to use on initialization. If it is not specified, implementation-defined default value is used
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
hash -
哈希函数来使用
Original:
hash function to use
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
equal -
比较函数来使用这个容器中的所有键进行比较
Original:
comparison function to use for all key comparisons of this container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
first, last -
取值范围为从复制元素
Original:
the range to copy the elements from
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
other -
要用作源初始化容器的元素与另一个容器
Original:
another container to be used as source to initialize the elements of the container with
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
init -
的初始化列表初始化容器元素
Original:
initializer list to initialize the elements of the container with
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Type requirements
-
InputIt must meet the requirements of InputIterator.

[编辑] 复杂性

1)
不变
Original:
constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
firstlast之间的距离呈线性关系
Original:
linear in distance between first and last
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
线性大小other
Original:
linear in size of other
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
不变。如果alloc,并给出alloc != other.get_allocator(),则采用线性.
Original:
constant. If alloc is given and alloc != other.get_allocator(), then linear.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
5)
线性大小init
Original:
linear in size of init
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 为例

[编辑] 另请参阅

将值分配到容器中
Original:
assigns values to the container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共成员函数) [edit]