forked from boostorg/unordered
Remove the emplace_hint implementation for unique containers as it isn't really used and seems to be causing sun 5.7 problems.
[SVN r56363]
This commit is contained in:
@@ -277,10 +277,9 @@ namespace boost
|
||||
}
|
||||
|
||||
template <class... Args>
|
||||
iterator emplace_hint(const_iterator hint, Args&&... args)
|
||||
iterator emplace_hint(const_iterator, Args&&... args)
|
||||
{
|
||||
return iterator(
|
||||
table_.emplace_hint(get(hint), std::forward<Args>(args)...));
|
||||
return iterator(table_.emplace(std::forward<Args>(args)...).first);
|
||||
}
|
||||
#else
|
||||
|
||||
@@ -290,10 +289,9 @@ namespace boost
|
||||
table_.emplace(v));
|
||||
}
|
||||
|
||||
iterator emplace_hint(const_iterator hint,
|
||||
value_type const& v = value_type())
|
||||
iterator emplace_hint(const_iterator, value_type const& v = value_type())
|
||||
{
|
||||
return iterator(table_.emplace_hint(get(hint), v));
|
||||
return iterator(table_.emplace(v).first);
|
||||
}
|
||||
|
||||
#define BOOST_UNORDERED_EMPLACE(z, n, _) \
|
||||
@@ -317,9 +315,8 @@ namespace boost
|
||||
BOOST_UNORDERED_FUNCTION_PARAMS(z, n) \
|
||||
) \
|
||||
{ \
|
||||
return iterator(table_.emplace_hint(get(hint), \
|
||||
BOOST_UNORDERED_CALL_PARAMS(z, n) \
|
||||
)); \
|
||||
return iterator(table_.emplace( \
|
||||
BOOST_UNORDERED_CALL_PARAMS(z, n)).first); \
|
||||
}
|
||||
|
||||
BOOST_PP_REPEAT_FROM_TO(1, BOOST_UNORDERED_EMPLACE_LIMIT,
|
||||
@@ -337,7 +334,7 @@ namespace boost
|
||||
|
||||
iterator insert(const_iterator hint, const value_type& obj)
|
||||
{
|
||||
return iterator(table_.emplace_hint(get(hint), obj));
|
||||
return iterator(table_.emplace(obj).first);
|
||||
}
|
||||
|
||||
template <class InputIt>
|
||||
|
||||
Reference in New Issue
Block a user