Skip to content

Commit 82f8370

Browse files
committed
Selective forceinline
1 parent b6a5bdb commit 82f8370

6 files changed

Lines changed: 10 additions & 1 deletion

File tree

include/boost/container/experimental/segmented_copy_if.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ BOOST_CONTAINER_FORCEINLINE segduo<RASrcIter, DstIter> segmented_copy_if_dst_bou
102102
#endif //BOOST_CONTAINER_SEGMENTED_LOOP_UNROLLING
103103

104104
template <class SrcIter, class Sent, class DstIter, class DstSent, class Pred, class DstTag, class SrcCat>
105-
BOOST_CONTAINER_FORCEINLINE typename algo_enable_if_c<!DstTag::value, segduo<SrcIter, DstIter> >::type
105+
BOOST_CONTAINER_FORCEINLINE
106+
typename algo_enable_if_c<!DstTag::value, segduo<SrcIter, DstIter> >::type
106107
segmented_copy_if_dst_bounded
107108
(SrcIter first, Sent last, DstIter dst_first, DstSent dst_last, Pred pred, DstTag, SrcCat)
108109
{

include/boost/container/experimental/segmented_fill.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ namespace detail_algo {
3535
#if defined(BOOST_CONTAINER_SEGMENTED_LOOP_UNROLLING)
3636

3737
template <class RAIter, class T>
38+
BOOST_CONTAINER_FORCEINLINE
3839
void segmented_fill_range
3940
(RAIter first, RAIter last, const T& value, const non_segmented_iterator_tag &, const std::random_access_iterator_tag &)
4041
{

include/boost/container/experimental/segmented_find_if.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ namespace detail_algo {
3434
#if defined(BOOST_CONTAINER_SEGMENTED_LOOP_UNROLLING)
3535

3636
template <class RAIter, class Pred>
37+
BOOST_CONTAINER_FORCEINLINE
3738
RAIter segmented_find_if_dispatch
3839
(RAIter first, RAIter last, Pred pred, const non_segmented_iterator_tag &, const std::random_access_iterator_tag &)
3940
{
@@ -82,6 +83,7 @@ RAIter segmented_find_if_dispatch
8283
#endif //BOOST_CONTAINER_SEGMENTED_LOOP_UNROLLING
8384

8485
template <class InpIter, class Sent, class Pred, class Tag, class Cat>
86+
BOOST_CONTAINER_FORCEINLINE
8587
typename algo_enable_if_c<
8688
!Tag::value || is_sentinel<Sent, InpIter>::value, InpIter>::type
8789
segmented_find_if_dispatch(InpIter first, Sent last, Pred pred, Tag, Cat)

include/boost/container/experimental/segmented_is_sorted_until.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ namespace detail_algo {
4242
// (1) Non-segmented base case.
4343
// At this level FwdIt == DeepIt (the deepest type computed from the top).
4444
template <class FwdIt, class Sent, class Comp, class DeepIt, class Cat>
45+
BOOST_CONTAINER_FORCEINLINE
4546
segduo<FwdIt, DeepIt> sorted_until_rec
4647
(FwdIt first, Sent last, Comp comp,
4748
DeepIt prev, const non_segmented_iterator_tag &, Cat)

include/boost/container/experimental/segmented_none_of.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ namespace detail_algo {
3434
#if defined(BOOST_CONTAINER_SEGMENTED_LOOP_UNROLLING)
3535

3636
template <class RAIter, class Pred>
37+
BOOST_CONTAINER_FORCEINLINE
3738
bool segmented_none_of_dispatch
3839
(RAIter first, RAIter last, Pred pred, const non_segmented_iterator_tag &, const std::random_access_iterator_tag &)
3940
{
@@ -81,6 +82,7 @@ bool segmented_none_of_dispatch
8182
#endif //BOOST_CONTAINER_SEGMENTED_LOOP_UNROLLING
8283

8384
template <class InpIter, class Sent, class Pred, class Tag, class Cat>
85+
BOOST_CONTAINER_FORCEINLINE
8486
typename algo_enable_if_c<
8587
!Tag::value || is_sentinel<Sent, InpIter>::value, bool>::type
8688
segmented_none_of_dispatch(InpIter first, Sent last, Pred pred, Tag, Cat)

include/boost/container/experimental/segmented_transform.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ namespace detail_algo {
3434
#if defined(BOOST_CONTAINER_SEGMENTED_LOOP_UNROLLING)
3535

3636
template <class InIter, class OutIter, class UnaryOp>
37+
BOOST_CONTAINER_FORCEINLINE
3738
OutIter segmented_transform_dispatch
3839
(InIter first, InIter last, OutIter result, UnaryOp op, const non_segmented_iterator_tag &, const std::random_access_iterator_tag &)
3940
{
@@ -68,6 +69,7 @@ OutIter segmented_transform_dispatch
6869

6970

7071
template <class InIter, class Sent, class OutIter, class UnaryOp, class Tag, class Cat>
72+
BOOST_CONTAINER_FORCEINLINE
7173
typename algo_enable_if_c<
7274
!Tag::value || is_sentinel<Sent, InIter>::value, OutIter>::type
7375
segmented_transform_dispatch

0 commit comments

Comments
 (0)