From 53328766b952e88b50218b7c69d8b6e5f2a959a1 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Fri, 5 May 2023 15:41:08 -0700 Subject: [PATCH] Return size_type instead of size_t --- .../boost/unordered/concurrent_flat_map.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/boost/unordered/concurrent_flat_map.hpp b/include/boost/unordered/concurrent_flat_map.hpp index 45e65284..04b69eaf 100644 --- a/include/boost/unordered/concurrent_flat_map.hpp +++ b/include/boost/unordered/concurrent_flat_map.hpp @@ -306,21 +306,21 @@ namespace boost { } template - BOOST_FORCEINLINE std::size_t visit(key_type const& k, F f) + BOOST_FORCEINLINE size_type visit(key_type const& k, F f) { BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F) return table_.visit(k, f); } template - BOOST_FORCEINLINE std::size_t visit(key_type const& k, F f) const + BOOST_FORCEINLINE size_type visit(key_type const& k, F f) const { BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F) return table_.visit(k, f); } template - BOOST_FORCEINLINE std::size_t cvisit(key_type const& k, F f) const + BOOST_FORCEINLINE size_type cvisit(key_type const& k, F f) const { BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F) return table_.visit(k, f); @@ -328,7 +328,7 @@ namespace boost { template BOOST_FORCEINLINE typename std::enable_if< - detail::are_transparent::value, std::size_t>::type + detail::are_transparent::value, size_type>::type visit(K&& k, F f) { BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F) @@ -337,7 +337,7 @@ namespace boost { template BOOST_FORCEINLINE typename std::enable_if< - detail::are_transparent::value, std::size_t>::type + detail::are_transparent::value, size_type>::type visit(K&& k, F f) const { BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F) @@ -346,26 +346,26 @@ namespace boost { template BOOST_FORCEINLINE typename std::enable_if< - detail::are_transparent::value, std::size_t>::type + detail::are_transparent::value, size_type>::type cvisit(K&& k, F f) const { BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F) return table_.visit(std::forward(k), f); } - template BOOST_FORCEINLINE std::size_t visit_all(F f) + template BOOST_FORCEINLINE size_type visit_all(F f) { BOOST_UNORDERED_STATIC_ASSERT_INVOCABLE(F) return table_.visit_all(f); } - template BOOST_FORCEINLINE std::size_t visit_all(F f) const + template BOOST_FORCEINLINE size_type visit_all(F f) const { BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F) return table_.visit_all(f); } - template BOOST_FORCEINLINE std::size_t cvisit_all(F f) const + template BOOST_FORCEINLINE size_type cvisit_all(F f) const { BOOST_UNORDERED_STATIC_ASSERT_CONST_INVOCABLE(F) return table_.cvisit_all(f);