mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Add insert(initializer_list)
This commit is contained in:
@ -139,6 +139,11 @@ namespace boost {
|
||||
}
|
||||
}
|
||||
|
||||
void insert(std::initializer_list<value_type> ilist)
|
||||
{
|
||||
this->insert(ilist.begin(), ilist.end());
|
||||
}
|
||||
|
||||
template <class F> std::size_t visit_all(F f)
|
||||
{
|
||||
return table_.visit_all(std::move(f));
|
||||
@ -147,6 +152,7 @@ namespace boost {
|
||||
/// Hash Policy
|
||||
///
|
||||
void rehash(size_type n) { table_.rehash(n); }
|
||||
void reserve(size_type n) { table_.reserve(n); }
|
||||
};
|
||||
} // namespace unordered
|
||||
} // namespace boost
|
||||
|
Reference in New Issue
Block a user