Skip to content

Commit ee8ca90

Browse files
committed
forceinline trivial functions
1 parent 9c02f05 commit ee8ca90

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

experimental/bench_segmented_algos.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ FwdIt find_last_dispatch(FwdIt first, FwdIt last, const T& val, std::forward_ite
514514
}
515515

516516
template<class It, class T>
517-
It find_last(It first, It last, const T& val)
517+
BOOST_CONTAINER_FORCEINLINE It find_last(It first, It last, const T& val)
518518
{
519519
typedef typename std::iterator_traits<It>::iterator_category cat;
520520
return find_last_dispatch(first, last, val, cat());
@@ -541,7 +541,7 @@ FwdIt find_last_if_dispatch(FwdIt first, FwdIt last, Pred pred, std::forward_ite
541541
}
542542

543543
template<class It, class Pred>
544-
It find_last_if(It first, It last, Pred pred)
544+
BOOST_CONTAINER_FORCEINLINE It find_last_if(It first, It last, Pred pred)
545545
{
546546
typedef typename std::iterator_traits<It>::iterator_category cat;
547547
return find_last_if_dispatch(first, last, pred, cat());
@@ -568,15 +568,13 @@ FwdIt find_last_if_not_dispatch(FwdIt first, FwdIt last, Pred pred, std::forward
568568
}
569569

570570
template<class It, class Pred>
571-
It find_last_if_not(It first, It last, Pred pred)
571+
BOOST_CONTAINER_FORCEINLINE It find_last_if_not(It first, It last, Pred pred)
572572
{
573573
typedef typename std::iterator_traits<It>::iterator_category cat;
574574
return find_last_if_not_dispatch(first, last, pred, cat());
575575
}
576576

577577

578-
579-
580578
//Not benchmarked:
581579
//inplace_merge
582580

0 commit comments

Comments
 (0)