|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2008-08-11 03:52:38
Author: danieljames
Date: 2008-08-11 03:52:37 EDT (Mon, 11 Aug 2008)
New Revision: 48081
URL: http://svn.boost.org/trac/boost/changeset/48081
Log:
Rename 'emplace' with hint to 'emplace_hint'.
Text files modified:
trunk/boost/unordered_map.hpp | 4 ++--
trunk/boost/unordered_set.hpp | 4 ++--
trunk/libs/unordered/doc/changes.qbk | 5 +++++
trunk/libs/unordered/doc/ref.xml | 8 ++++----
trunk/libs/unordered/test/unordered/compile_tests.hpp | 2 +-
5 files changed, 14 insertions(+), 9 deletions(-)
Modified: trunk/boost/unordered_map.hpp
==============================================================================
--- trunk/boost/unordered_map.hpp (original)
+++ trunk/boost/unordered_map.hpp 2008-08-11 03:52:37 EDT (Mon, 11 Aug 2008)
@@ -237,7 +237,7 @@
}
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 @@
}
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)...));
}
Modified: trunk/boost/unordered_set.hpp
==============================================================================
--- trunk/boost/unordered_set.hpp (original)
+++ trunk/boost/unordered_set.hpp 2008-08-11 03:52:37 EDT (Mon, 11 Aug 2008)
@@ -233,7 +233,7 @@
}
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 @@
}
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)...));
}
Modified: trunk/libs/unordered/doc/changes.qbk
==============================================================================
--- trunk/libs/unordered/doc/changes.qbk (original)
+++ trunk/libs/unordered/doc/changes.qbk 2008-08-11 03:52:37 EDT (Mon, 11 Aug 2008)
@@ -33,4 +33,9 @@
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]
Modified: trunk/libs/unordered/doc/ref.xml
==============================================================================
--- trunk/libs/unordered/doc/ref.xml (original)
+++ trunk/libs/unordered/doc/ref.xml 2008-08-11 03:52:37 EDT (Mon, 11 Aug 2008)
@@ -287,7 +287,7 @@
<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 @@
<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 @@
<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 @@
<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>
Modified: trunk/libs/unordered/test/unordered/compile_tests.hpp
==============================================================================
--- trunk/libs/unordered/test/unordered/compile_tests.hpp (original)
+++ trunk/libs/unordered/test/unordered/compile_tests.hpp 2008-08-11 03:52:37 EDT (Mon, 11 Aug 2008)
@@ -290,7 +290,7 @@
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);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk