From f405fa911867bd1cbee91ea7716857dbc05fa7d2 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Sun, 19 Feb 2023 21:18:09 -0800 Subject: [PATCH] Rename foa's emplace_dispatch to emplace_value --- include/boost/unordered/detail/foa.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index f06d7d4a..c18cab85 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1393,7 +1393,7 @@ public: * inserted. For immovable types, we instead dispatch to the routine that * unconditionally allocates via `type_policy::construct()`. */ - return emplace_dispatch( + return emplace_value( std::is_constructible< value_type, emplace_type&&>{}, @@ -1873,16 +1873,16 @@ private: #endif template - BOOST_FORCEINLINE std::pair emplace_dispatch( - std::true_type,Args&&... args + BOOST_FORCEINLINE std::pair emplace_value( + std::true_type /* movable value_type */,Args&&... args ) { using emplace_type_t = emplace_type; return emplace_impl(emplace_type_t(std::forward(args)...)); } template - BOOST_FORCEINLINE std::pair emplace_dispatch( - std::false_type,Args&&... args + BOOST_FORCEINLINE std::pair emplace_value( + std::false_type /* immovable value_type */,Args&&... args ) { alignas(element_type) unsigned char buf[sizeof(element_type)];