Rename 'emplace' with hint to 'emplace_hint'.

[SVN r48081]
This commit is contained in:
Daniel James
2008-08-11 07:52:37 +00:00
parent d8fa4cef60
commit d6f513be52
5 changed files with 14 additions and 9 deletions

View File

@ -33,4 +33,9 @@ First official release.
are available.
* 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]

View File

@ -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>
</notes>
</method>
<method name="emplace">
<method name="emplace_hint">
<template>
<template-type-parameter name="Args" pack="1">
</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>
</notes>
</method>
<method name="emplace">
<method name="emplace_hint">
<template>
<template-type-parameter name="Args" pack="1">
</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>
</notes>
</method>
<method name="emplace">
<method name="emplace_hint">
<template>
<template-type-parameter name="Args" pack="1">
</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>
</notes>
</method>
<method name="emplace">
<method name="emplace_hint">
<template>
<template-type-parameter name="Args" pack="1">
</template-type-parameter>

View File

@ -237,7 +237,7 @@ namespace boost
}
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)...));
}
@ -625,7 +625,7 @@ namespace boost
}
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)...));
}

View File

@ -233,7 +233,7 @@ namespace boost
}
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)...));
@ -592,7 +592,7 @@ namespace boost
}
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)...));
}

View File

@ -290,7 +290,7 @@ void unordered_test(X&, Key& k, T& t, Hash& hf, Pred& eq)
const_iterator q = a.cbegin();
test::check_return_type<iterator>::equals(a.insert(q, t));
#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
a.insert(i, j);