std::unordered_multimap::unordered_multimap
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| explicit unordered_multimap( size_type bucket_count = /*implementation-defined*/, const Hash& hash = Hash(), |
(1) | (C++11 起) |
| explicit unordered_multimap( const Allocator& alloc ); |
(1) | (C++11 起) |
| template< class InputIt > unordered_multimap( InputIt first, InputIt last, |
(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*/, |
(5) | (C++11 起) |
bucket_count,hash作为散列函数,equal的功能键进行比较和alloc的分配器. 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. You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[first, last).[first, last).You can help to correct and verify the translation. Click here for instructions.
other构造的容器。 alloc不提供,分配器是通过调用std::allocator_traits<allocator_type>::select_on_copy_construction(other).other. If alloc is not provided, allocator is obtained by calling std::allocator_traits<allocator_type>::select_on_copy_construction(other).You can help to correct and verify the translation. Click here for instructions.
other使用移动语义。 alloc不提供,分配器是通过移动建设属于other从分配器.other using move semantics. If alloc is not provided, allocator is obtained by move-construction from the allocator belonging to other.You can help to correct and verify the translation. Click here for instructions.
init init. 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.
| ||
[编辑] 复杂性
| 本节是不完整的 |
You can help to correct and verify the translation. Click here for instructions.
first和last之间的距离呈线性关系first and lastYou can help to correct and verify the translation. Click here for instructions.
otherotherYou can help to correct and verify the translation. Click here for instructions.
alloc,并给出alloc != other.get_allocator(),则采用线性.alloc is given and alloc != other.get_allocator(), then linear.You can help to correct and verify the translation. Click here for instructions.
initinitYou can help to correct and verify the translation. Click here for instructions.
[编辑] 为例
| 本节是不完整的 原因: no example |
[编辑] 另请参阅
| 将值分配到容器中 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. (公共成员函数) | |