forked from boostorg/unordered
Expand calls to insert_range
This commit is contained in:
@@ -1068,7 +1068,7 @@ unordered_set<T, H, P, A>::unordered_set(InputIt f, InputIt l, size_type n,
|
||||
const hasher& hf, const key_equal& eql, const allocator_type& a)
|
||||
: table_(boost::unordered::detail::initial_size(f, l, n), hf, eql, a)
|
||||
{
|
||||
table_.insert_range(f, l);
|
||||
this->insert(f, l);
|
||||
}
|
||||
|
||||
template <class T, class H, class P, class A>
|
||||
@@ -1108,7 +1108,7 @@ unordered_set<T, H, P, A>::unordered_set(std::initializer_list<value_type> list,
|
||||
boost::unordered::detail::initial_size(list.begin(), list.end(), n),
|
||||
hf, eql, a)
|
||||
{
|
||||
table_.insert_range(list.begin(), list.end());
|
||||
this->insert(list.begin(), list.end());
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1133,7 +1133,7 @@ unordered_set<T, H, P, A>::unordered_set(
|
||||
: table_(boost::unordered::detail::initial_size(f, l, n), hasher(),
|
||||
key_equal(), a)
|
||||
{
|
||||
table_.insert_range(f, l);
|
||||
this->insert(f, l);
|
||||
}
|
||||
|
||||
template <class T, class H, class P, class A>
|
||||
@@ -1143,7 +1143,7 @@ unordered_set<T, H, P, A>::unordered_set(InputIt f, InputIt l, size_type n,
|
||||
: table_(
|
||||
boost::unordered::detail::initial_size(f, l, n), hf, key_equal(), a)
|
||||
{
|
||||
table_.insert_range(f, l);
|
||||
this->insert(f, l);
|
||||
}
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)
|
||||
@@ -1155,7 +1155,7 @@ unordered_set<T, H, P, A>::unordered_set(std::initializer_list<value_type> list,
|
||||
boost::unordered::detail::initial_size(list.begin(), list.end(), n),
|
||||
hasher(), key_equal(), a)
|
||||
{
|
||||
table_.insert_range(list.begin(), list.end());
|
||||
this->insert(list.begin(), list.end());
|
||||
}
|
||||
|
||||
template <class T, class H, class P, class A>
|
||||
@@ -1165,7 +1165,7 @@ unordered_set<T, H, P, A>::unordered_set(std::initializer_list<value_type> list,
|
||||
boost::unordered::detail::initial_size(list.begin(), list.end(), n),
|
||||
hf, key_equal(), a)
|
||||
{
|
||||
table_.insert_range(list.begin(), list.end());
|
||||
this->insert(list.begin(), list.end());
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1182,7 +1182,7 @@ unordered_set<T, H, P, A>& unordered_set<T, H, P, A>::operator=(
|
||||
std::initializer_list<value_type> list)
|
||||
{
|
||||
this->clear();
|
||||
table_.insert_range(list.begin(), list.end());
|
||||
this->insert(list.begin(), list.end());
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -1208,14 +1208,17 @@ template <class T, class H, class P, class A>
|
||||
template <class InputIt>
|
||||
void unordered_set<T, H, P, A>::insert(InputIt first, InputIt last)
|
||||
{
|
||||
table_.insert_range(first, last);
|
||||
if (first != last) {
|
||||
table_.insert_range_impl(
|
||||
table::extractor::extract(*first), first, last);
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)
|
||||
template <class T, class H, class P, class A>
|
||||
void unordered_set<T, H, P, A>::insert(std::initializer_list<value_type> list)
|
||||
{
|
||||
table_.insert_range(list.begin(), list.end());
|
||||
this->insert(list.begin(), list.end());
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1445,7 +1448,7 @@ unordered_multiset<T, H, P, A>::unordered_multiset(InputIt f, InputIt l,
|
||||
const allocator_type& a)
|
||||
: table_(boost::unordered::detail::initial_size(f, l, n), hf, eql, a)
|
||||
{
|
||||
table_.insert_range(f, l);
|
||||
this->insert(f, l);
|
||||
}
|
||||
|
||||
template <class T, class H, class P, class A>
|
||||
@@ -1486,7 +1489,7 @@ unordered_multiset<T, H, P, A>::unordered_multiset(
|
||||
boost::unordered::detail::initial_size(list.begin(), list.end(), n),
|
||||
hf, eql, a)
|
||||
{
|
||||
table_.insert_range(list.begin(), list.end());
|
||||
this->insert(list.begin(), list.end());
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1512,7 +1515,7 @@ unordered_multiset<T, H, P, A>::unordered_multiset(
|
||||
: table_(boost::unordered::detail::initial_size(f, l, n), hasher(),
|
||||
key_equal(), a)
|
||||
{
|
||||
table_.insert_range(f, l);
|
||||
this->insert(f, l);
|
||||
}
|
||||
|
||||
template <class T, class H, class P, class A>
|
||||
@@ -1522,7 +1525,7 @@ unordered_multiset<T, H, P, A>::unordered_multiset(InputIt f, InputIt l,
|
||||
: table_(
|
||||
boost::unordered::detail::initial_size(f, l, n), hf, key_equal(), a)
|
||||
{
|
||||
table_.insert_range(f, l);
|
||||
this->insert(f, l);
|
||||
}
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST)
|
||||
@@ -1535,7 +1538,7 @@ unordered_multiset<T, H, P, A>::unordered_multiset(
|
||||
boost::unordered::detail::initial_size(list.begin(), list.end(), n),
|
||||
hasher(), key_equal(), a)
|
||||
{
|
||||
table_.insert_range(list.begin(), list.end());
|
||||
this->insert(list.begin(), list.end());
|
||||
}
|
||||
|
||||
template <class T, class H, class P, class A>
|
||||
@@ -1546,7 +1549,7 @@ unordered_multiset<T, H, P, A>::unordered_multiset(
|
||||
boost::unordered::detail::initial_size(list.begin(), list.end(), n),
|
||||
hf, key_equal(), a)
|
||||
{
|
||||
table_.insert_range(list.begin(), list.end());
|
||||
this->insert(list.begin(), list.end());
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1563,7 +1566,7 @@ unordered_multiset<T, H, P, A>& unordered_multiset<T, H, P, A>::operator=(
|
||||
std::initializer_list<value_type> list)
|
||||
{
|
||||
this->clear();
|
||||
table_.insert_range(list.begin(), list.end());
|
||||
this->insert(list.begin(), list.end());
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -1597,7 +1600,7 @@ template <class T, class H, class P, class A>
|
||||
void unordered_multiset<T, H, P, A>::insert(
|
||||
std::initializer_list<value_type> list)
|
||||
{
|
||||
table_.insert_range(list.begin(), list.end());
|
||||
this->insert(list.begin(), list.end());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user