Unordered: Rename *_impl to *_value_impl.

To make it clear that they should only be used to construct and destroy
the value, and not nodes or buckets.

[SVN r80223]
This commit is contained in:
Daniel James committed 2012-08-25 21:53:53 +00:00
1 parent cd57bf5000
commit 8f86c2464e
2 files changed
+21 -21

No files matched your search

+5 -5
View File
@@ -74,7 +74,7 @@ namespace boost { namespace unordered { namespace detail {
void construct_value(BOOST_UNORDERED_EMPLACE_ARGS)
{
BOOST_ASSERT(node_ && node_constructed_ && !value_constructed_);
boost::unordered::detail::construct_impl(
boost::unordered::detail::construct_value_impl(
alloc_, node_->value_ptr(), BOOST_UNORDERED_EMPLACE_FORWARD);
value_constructed_ = true;
}
@@ -83,7 +83,7 @@ namespace boost { namespace unordered { namespace detail {
void construct_value2(BOOST_FWD_REF(A0) a0)
{
BOOST_ASSERT(node_ && node_constructed_ && !value_constructed_);
boost::unordered::detail::construct_impl(
boost::unordered::detail::construct_value_impl(
alloc_, node_->value_ptr(),
BOOST_UNORDERED_EMPLACE_ARGS1(boost::forward<A0>(a0)));
value_constructed_ = true;
@@ -112,7 +112,7 @@ namespace boost { namespace unordered { namespace detail {
{
if (node_) {
if (value_constructed_) {
boost::unordered::detail::destroy_impl(alloc_,
boost::unordered::detail::destroy_value_impl(alloc_,
node_->value_ptr());
}
@@ -144,7 +144,7 @@ namespace boost { namespace unordered { namespace detail {
if (value_constructed_)
{
boost::unordered::detail::destroy_impl(alloc_,
boost::unordered::detail::destroy_value_impl(alloc_,
node_->value_ptr());
value_constructed_ = false;
}
@@ -764,7 +764,7 @@ namespace boost { namespace unordered { namespace detail {
inline void delete_node(c_iterator n)
{
boost::unordered::detail::destroy_impl(node_alloc(),
boost::unordered::detail::destroy_value_impl(node_alloc(),
n.node_->value_ptr());
node_allocator_traits::destroy(node_alloc(),
boost::addressof(*n.node_));