mirror of
https://github.com/boostorg/unordered.git
synced 2025-11-03 01:01:42 +01:00
Implement myriad insert() overloads, get first threaded test working
This commit is contained in:
@@ -126,6 +126,18 @@ namespace boost {
|
||||
///
|
||||
|
||||
bool insert(value_type const& obj) { return table_.insert(obj); }
|
||||
bool insert(value_type&& obj) { return table_.insert(obj); }
|
||||
|
||||
bool insert(init_type const& obj) { return table_.insert(obj); }
|
||||
bool insert(init_type&& obj) { return table_.insert(std::move(obj)); }
|
||||
|
||||
template <class InputIterator>
|
||||
void insert(InputIterator begin, InputIterator end)
|
||||
{
|
||||
for (auto pos = begin; pos != end; ++pos) {
|
||||
table_.insert(*pos);
|
||||
}
|
||||
}
|
||||
|
||||
template <class F> std::size_t visit_all(F f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user