diff --git a/include/boost/unordered/detail/allocate.hpp b/include/boost/unordered/detail/allocate.hpp index f48c7a8f..b6f1c796 100644 --- a/include/boost/unordered/detail/allocate.hpp +++ b/include/boost/unordered/detail/allocate.hpp @@ -776,7 +776,7 @@ namespace boost { namespace unordered { namespace detail { } template - inline void destroy_impl(Alloc& alloc, T* x) { + inline void destroy_value_impl(Alloc& alloc, T* x) { boost::unordered::detail::allocator_traits::destroy(alloc, x); } @@ -791,7 +791,7 @@ namespace boost { namespace unordered { namespace detail { } template - inline void destroy_impl(Alloc&, T* x) { + inline void destroy_value_impl(Alloc&, T* x) { boost::unordered::detail::destroy(x); } @@ -801,7 +801,7 @@ namespace boost { namespace unordered { namespace detail { #else template - inline void destroy_impl(Alloc&, T* x) { + inline void destroy_value_impl(Alloc&, T* x) { boost::unordered::detail::destroy(x); } @@ -978,7 +978,7 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) // Construct from variadic parameters template - inline void construct_impl(Alloc& alloc, T* address, + inline void construct_value_impl(Alloc& alloc, T* address, BOOST_FWD_REF(Args)... args) { boost::unordered::detail::call_construct(alloc, @@ -988,7 +988,7 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) template inline typename enable_if, void>::type - construct_impl(Alloc& alloc, std::pair* address, + construct_value_impl(Alloc& alloc, std::pair* address, BOOST_FWD_REF(A0), BOOST_FWD_REF(A1) a1, BOOST_FWD_REF(A2) a2) { boost::unordered::detail::construct_from_tuple(alloc, @@ -1001,7 +1001,7 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) template inline typename enable_if, void>::type - construct_impl(Alloc& alloc, std::pair* address, + construct_value_impl(Alloc& alloc, std::pair* address, BOOST_FWD_REF(A0) a0) { boost::unordered::detail::call_construct(alloc, @@ -1013,7 +1013,7 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) template inline typename enable_if, void>::type - construct_impl(Alloc& alloc, std::pair* address, + construct_value_impl(Alloc& alloc, std::pair* address, BOOST_FWD_REF(A0) a0, BOOST_FWD_REF(A1) a1, BOOST_FWD_REF(A2) a2) { boost::unordered::detail::call_construct(alloc, @@ -1027,7 +1027,7 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) template - inline void construct_impl(Alloc& alloc, std::pair* address, + inline void construct_value_impl(Alloc& alloc, std::pair* address, BOOST_FWD_REF(A0) a0, BOOST_FWD_REF(A1) a1, BOOST_FWD_REF(A2) a2, BOOST_FWD_REF(A3) a3, BOOST_FWD_REF(Args)... args) { @@ -1052,7 +1052,7 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) typename Alloc, typename T, \ BOOST_PP_ENUM_PARAMS_Z(z, num_params, typename A) \ > \ - inline void construct_impl(Alloc&, T* address, \ + inline void construct_value_impl(Alloc&, T* address, \ boost::unordered::detail::BOOST_PP_CAT(emplace_args,num_params) < \ BOOST_PP_ENUM_PARAMS_Z(z, num_params, A) \ > const& args) \ @@ -1063,14 +1063,14 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) } template - inline void construct_impl(Alloc&, T* address, + inline void construct_value_impl(Alloc&, T* address, emplace_args1 const& args) { new((void*) address) T(boost::forward(args.a0)); } template - inline void construct_impl(Alloc&, T* address, + inline void construct_value_impl(Alloc&, T* address, emplace_args2 const& args) { new((void*) address) T( @@ -1080,7 +1080,7 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) } template - inline void construct_impl(Alloc&, T* address, + inline void construct_value_impl(Alloc&, T* address, emplace_args3 const& args) { new((void*) address) T( @@ -1097,7 +1097,7 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) template - inline void construct_impl(Alloc& alloc, std::pair* address, + inline void construct_value_impl(Alloc& alloc, std::pair* address, boost::unordered::detail::emplace_args3 const& args, typename enable_if, void*>::type = 0) { @@ -1110,7 +1110,7 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) #if defined(BOOST_UNORDERED_DEPRECATED_PAIR_CONSTRUCT) template - inline void construct_impl(Alloc&, std::pair* address, + inline void construct_value_impl(Alloc&, std::pair* address, boost::unordered::detail::emplace_args1 const& args, typename enable_if, void*>::type = 0) { @@ -1121,7 +1121,7 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) template - inline void construct_impl(Alloc&, std::pair* address, + inline void construct_value_impl(Alloc&, std::pair* address, boost::unordered::detail::emplace_args3 const& args, typename enable_if, void*>::type = 0) { @@ -1136,7 +1136,7 @@ BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) template \ - inline void construct_impl(Alloc&, std::pair* address, \ + inline void construct_value_impl(Alloc&, std::pair* address, \ boost::unordered::detail::BOOST_PP_CAT(emplace_args, num_params) < \ BOOST_PP_ENUM_PARAMS_Z(z, num_params, A) \ > const& args) \ diff --git a/include/boost/unordered/detail/buckets.hpp b/include/boost/unordered/detail/buckets.hpp index 941d441d..4dfe0445 100644 --- a/include/boost/unordered/detail/buckets.hpp +++ b/include/boost/unordered/detail/buckets.hpp @@ -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))); 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_));