From 542c76dbcdbfeae3c762b53f76e2cb04f85e2d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 9 May 2026 23:15:04 +0200 Subject: [PATCH] Remove unneeded segmented_fill_dispatch --- .../boost/container/experimental/segmented_fill.hpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/include/boost/container/experimental/segmented_fill.hpp b/include/boost/container/experimental/segmented_fill.hpp index bbdbd1a..1fd8533 100644 --- a/include/boost/container/experimental/segmented_fill.hpp +++ b/include/boost/container/experimental/segmented_fill.hpp @@ -103,13 +103,6 @@ void segmented_fill_range } } -template -BOOST_CONTAINER_FORCEINLINE -void segmented_fill_dispatch(FwdIt first, FwdIt last, const T& value, const std::random_access_iterator_tag &) -{ - (segmented_fill_n)(first, last - first, value); -} - template BOOST_CONTAINER_FORCEINLINE void segmented_fill_dispatch(FwdIt first, Sent last, const T& value, const Cat &) @@ -129,7 +122,10 @@ template BOOST_CONTAINER_FORCEINLINE void segmented_fill(FwdIt first, Sent last, const T& value) { - detail_algo::segmented_fill_dispatch(first, last, value, typename iterator_traits::iterator_category()); + typedef segmented_iterator_traits traits; + (detail_algo::segmented_fill_range)( first, last, value + , typename traits::is_segmented_iterator() + , typename iterator_traits::iterator_category()); } } // namespace container