From 10e6e52b5dfd24f20a368bb895912ff05ee21c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Tue, 5 May 2026 10:19:56 +0200 Subject: [PATCH] Use forceinline in for_each --- include/boost/container/experimental/segmented_for_each.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/container/experimental/segmented_for_each.hpp b/include/boost/container/experimental/segmented_for_each.hpp index 95530fc..83083d4 100644 --- a/include/boost/container/experimental/segmented_for_each.hpp +++ b/include/boost/container/experimental/segmented_for_each.hpp @@ -35,6 +35,7 @@ namespace detail_algo { #if defined(BOOST_CONTAINER_SEGMENTED_LOOP_UNROLLING) template +BOOST_CONTAINER_FORCEINLINE F segmented_for_each_dispatch (RAIter first, RAIter last, F f, const non_segmented_iterator_tag &, const std::random_access_iterator_tag &) { @@ -70,6 +71,7 @@ F segmented_for_each_dispatch template typename algo_enable_if_c< !Tag::value || is_sentinel::value, F>::type +BOOST_CONTAINER_FORCEINLINE segmented_for_each_dispatch (InpIter first, Sent last, F f, Tag, Cat) {