Add BOOST_CONTAINER_FORCEINLINE

This commit is contained in:
Ion Gaztañaga
2026-03-17 10:56:58 +01:00
parent c2c0132187
commit bf10746f96
2 changed files with 3 additions and 3 deletions
@@ -65,7 +65,7 @@ segmented_copy_dispatch
//! Copies elements from [first, last) to the range beginning at \c result.
//! Segmentation is exploited on the input range only.
template <class InIter, class Sent, class OutIter>
inline OutIter segmented_copy(InIter first, Sent last, OutIter result)
BOOST_CONTAINER_FORCEINLINE OutIter segmented_copy(InIter first, Sent last, OutIter result)
{
typedef segmented_iterator_traits<InIter> traits;
return detail_algo::segmented_copy_dispatch(first, last, result,
@@ -33,7 +33,7 @@ OutIter segmented_copy_n(InIter first, Size count, OutIter result);
namespace detail_algo {
template <class InIter, class Size, class OutIter>
OutIter copy_n_scan_non_segmented(InIter first, InIter last, Size& count, OutIter result, const std::random_access_iterator_tag &)
BOOST_CONTAINER_FORCEINLINE OutIter copy_n_scan_non_segmented(InIter first, InIter last, Size& count, OutIter result, const std::random_access_iterator_tag &)
{
Size range_sz = Size(last - first);
Size local_count = count < range_sz ? count : range_sz;
@@ -56,7 +56,7 @@ OutIter copy_n_scan_non_segmented(InIter first, InIter last, Size& count, OutIte
}
template <class InIter, class Size, class OutIter>
OutIter copy_n_scan(InIter first, InIter last, Size& count, OutIter result, non_segmented_iterator_tag)
BOOST_CONTAINER_FORCEINLINE OutIter copy_n_scan(InIter first, InIter last, Size& count, OutIter result, non_segmented_iterator_tag)
{
return (copy_n_scan_non_segmented)(first, last, count, result, typename iterator_traits<InIter>::iterator_category());
}