Implement myriad insert() overloads, get first threaded test working

This commit is contained in:
Christian Mazakas
2023-03-20 16:00:54 -07:00
parent 2fae05ed31
commit 4c927cd2f2
2 changed files with 147 additions and 32 deletions

View File

@@ -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)
{