mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 10:57:16 +02:00
New version of the unordered containers. Includes workarounds for older
compilers. Also follows the exception requirements closer. [SVN r2875]
This commit is contained in:
@ -107,9 +107,16 @@ namespace boost
|
||||
* the hash function and eq as the key equality predicate, and inserts
|
||||
* elements from [i,j) into it. a is used as the allocator.
|
||||
*/
|
||||
template <class InputIterator>
|
||||
unordered_map(InputIterator f, InputIterator l)
|
||||
: base(f, l, boost::unordered_detail::default_initial_bucket_count,
|
||||
hasher(), key_equal(), allocator_type())
|
||||
{
|
||||
}
|
||||
|
||||
template <class InputIterator>
|
||||
unordered_map(InputIterator f, InputIterator l,
|
||||
size_type n = boost::unordered_detail::default_initial_bucket_count,
|
||||
size_type n,
|
||||
const hasher &hf = hasher(),
|
||||
const key_equal &eql = key_equal(),
|
||||
const allocator_type &a = allocator_type())
|
||||
@ -388,9 +395,16 @@ namespace boost
|
||||
{
|
||||
}
|
||||
|
||||
template <class InputIterator>
|
||||
unordered_multimap(InputIterator f, InputIterator l)
|
||||
: base(f, l, boost::unordered_detail::default_initial_bucket_count,
|
||||
hasher(), key_equal(), allocator_type())
|
||||
{
|
||||
}
|
||||
|
||||
template <class InputIterator>
|
||||
unordered_multimap(InputIterator f, InputIterator l,
|
||||
size_type n = boost::unordered_detail::default_initial_bucket_count,
|
||||
size_type n,
|
||||
const hasher &hf = hasher(),
|
||||
const key_equal &eql = key_equal(),
|
||||
const allocator_type &a = allocator_type())
|
||||
|
Reference in New Issue
Block a user