mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 20:04:29 +02:00
Rename 'emplace' with hint to 'emplace_hint'.
[SVN r48081]
This commit is contained in:
@@ -33,4 +33,9 @@ First official release.
|
|||||||
are available.
|
are available.
|
||||||
* Added equality operators.
|
* Added equality operators.
|
||||||
|
|
||||||
|
[h2 Development...]
|
||||||
|
|
||||||
|
* Rename overload of `emplace` with hint, to `emplace_hint` as specified in
|
||||||
|
[@http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2008/n2691.pdf n2691].
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
@@ -287,7 +287,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
<para>Only available on compilers with support for variadic template arguments and rvalue references.</para>
|
<para>Only available on compilers with support for variadic template arguments and rvalue references.</para>
|
||||||
</notes>
|
</notes>
|
||||||
</method>
|
</method>
|
||||||
<method name="emplace">
|
<method name="emplace_hint">
|
||||||
<template>
|
<template>
|
||||||
<template-type-parameter name="Args" pack="1">
|
<template-type-parameter name="Args" pack="1">
|
||||||
</template-type-parameter>
|
</template-type-parameter>
|
||||||
@@ -1016,7 +1016,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
<para>Only available on compilers with support for variadic template arguments and rvalue references.</para>
|
<para>Only available on compilers with support for variadic template arguments and rvalue references.</para>
|
||||||
</notes>
|
</notes>
|
||||||
</method>
|
</method>
|
||||||
<method name="emplace">
|
<method name="emplace_hint">
|
||||||
<template>
|
<template>
|
||||||
<template-type-parameter name="Args" pack="1">
|
<template-type-parameter name="Args" pack="1">
|
||||||
</template-type-parameter>
|
</template-type-parameter>
|
||||||
@@ -1757,7 +1757,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
<para>Only available on compilers with support for variadic template arguments and rvalue references.</para>
|
<para>Only available on compilers with support for variadic template arguments and rvalue references.</para>
|
||||||
</notes>
|
</notes>
|
||||||
</method>
|
</method>
|
||||||
<method name="emplace">
|
<method name="emplace_hint">
|
||||||
<template>
|
<template>
|
||||||
<template-type-parameter name="Args" pack="1">
|
<template-type-parameter name="Args" pack="1">
|
||||||
</template-type-parameter>
|
</template-type-parameter>
|
||||||
@@ -2535,7 +2535,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
<para>Only available on compilers with support for variadic template arguments and rvalue references.</para>
|
<para>Only available on compilers with support for variadic template arguments and rvalue references.</para>
|
||||||
</notes>
|
</notes>
|
||||||
</method>
|
</method>
|
||||||
<method name="emplace">
|
<method name="emplace_hint">
|
||||||
<template>
|
<template>
|
||||||
<template-type-parameter name="Args" pack="1">
|
<template-type-parameter name="Args" pack="1">
|
||||||
</template-type-parameter>
|
</template-type-parameter>
|
||||||
|
@@ -237,7 +237,7 @@ namespace boost
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class... Args>
|
template <class... Args>
|
||||||
iterator emplace(const_iterator hint, Args&&... args)
|
iterator emplace_hint(const_iterator hint, Args&&... args)
|
||||||
{
|
{
|
||||||
return iterator(base.insert_hint(get(hint), std::forward<Args>(args)...));
|
return iterator(base.insert_hint(get(hint), std::forward<Args>(args)...));
|
||||||
}
|
}
|
||||||
@@ -625,7 +625,7 @@ namespace boost
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class... Args>
|
template <class... Args>
|
||||||
iterator emplace(const_iterator hint, Args&&... args)
|
iterator emplace_hint(const_iterator hint, Args&&... args)
|
||||||
{
|
{
|
||||||
return iterator(base.insert_hint(get(hint), std::forward<Args>(args)...));
|
return iterator(base.insert_hint(get(hint), std::forward<Args>(args)...));
|
||||||
}
|
}
|
||||||
|
@@ -233,7 +233,7 @@ namespace boost
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class... Args>
|
template <class... Args>
|
||||||
iterator emplace(const_iterator hint, Args&&... args)
|
iterator emplace_hint(const_iterator hint, Args&&... args)
|
||||||
{
|
{
|
||||||
return iterator(
|
return iterator(
|
||||||
base.insert_hint(get(hint), std::forward<Args>(args)...));
|
base.insert_hint(get(hint), std::forward<Args>(args)...));
|
||||||
@@ -592,7 +592,7 @@ namespace boost
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class... Args>
|
template <class... Args>
|
||||||
iterator emplace(const_iterator hint, Args&&... args)
|
iterator emplace_hint(const_iterator hint, Args&&... args)
|
||||||
{
|
{
|
||||||
return iterator(base.insert_hint(get(hint), std::forward<Args>(args)...));
|
return iterator(base.insert_hint(get(hint), std::forward<Args>(args)...));
|
||||||
}
|
}
|
||||||
|
@@ -290,7 +290,7 @@ void unordered_test(X&, Key& k, T& t, Hash& hf, Pred& eq)
|
|||||||
const_iterator q = a.cbegin();
|
const_iterator q = a.cbegin();
|
||||||
test::check_return_type<iterator>::equals(a.insert(q, t));
|
test::check_return_type<iterator>::equals(a.insert(q, t));
|
||||||
#if defined(BOOST_HAS_RVALUE_REFS) && defined(BOOST_HAS_VARIADIC_TMPL)
|
#if defined(BOOST_HAS_RVALUE_REFS) && defined(BOOST_HAS_VARIADIC_TMPL)
|
||||||
test::check_return_type<iterator>::equals(a.emplace(q, t));
|
test::check_return_type<iterator>::equals(a.emplace_hint(q, t));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
a.insert(i, j);
|
a.insert(i, j);
|
||||||
|
Reference in New Issue
Block a user