mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
made one overload of insert generic so that value_type is accepted
This commit is contained in:
@ -1045,9 +1045,10 @@ public:
|
|||||||
std::forward_as_tuple(std::forward<Args>(args)...));
|
std::forward_as_tuple(std::forward<Args>(args)...));
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_FORCEINLINE std::pair<iterator,bool> insert(const init_type& x)
|
template<typename T>
|
||||||
|
BOOST_FORCEINLINE std::pair<iterator,bool> insert(T&& x)
|
||||||
{
|
{
|
||||||
return emplace_impl(x);
|
return emplace_impl(std::forward<T>(x));
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_FORCEINLINE std::pair<iterator,bool> insert(init_type&& x)
|
BOOST_FORCEINLINE std::pair<iterator,bool> insert(init_type&& x)
|
||||||
|
Reference in New Issue
Block a user