mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 03:47:16 +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)
|
template <class F> std::size_t visit_all(F f)
|
||||||
{
|
{
|
||||||
return table_.visit_all(std::move(f));
|
return table_.visit_all(std::move(f));
|
||||||
@ -147,6 +152,7 @@ namespace boost {
|
|||||||
/// Hash Policy
|
/// Hash Policy
|
||||||
///
|
///
|
||||||
void rehash(size_type n) { table_.rehash(n); }
|
void rehash(size_type n) { table_.rehash(n); }
|
||||||
|
void reserve(size_type n) { table_.reserve(n); }
|
||||||
};
|
};
|
||||||
} // namespace unordered
|
} // namespace unordered
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
Reference in New Issue
Block a user