From 5d100cb45f26445608a42f5ab6909de04d254742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Tue, 11 Aug 2020 23:50:08 +0200 Subject: [PATCH] Add BOOST_CONTAINER_FORCEINLINE to trivial functions --- .../boost/container/detail/copy_move_algo.hpp | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/include/boost/container/detail/copy_move_algo.hpp b/include/boost/container/detail/copy_move_algo.hpp index cb21cc1..2212281 100644 --- a/include/boost/container/detail/copy_move_algo.hpp +++ b/include/boost/container/detail/copy_move_algo.hpp @@ -171,7 +171,7 @@ struct disable_if_memtransfer_copy_assignable template // F models ForwardIterator -inline F memmove(I f, I l, F r) BOOST_NOEXCEPT_OR_NOTHROW +BOOST_CONTAINER_FORCEINLINE F memmove(I f, I l, F r) BOOST_NOEXCEPT_OR_NOTHROW { typedef typename boost::container::iterator_traits::value_type value_type; value_type *const dest_raw = boost::movelib::iterator_to_raw_pointer(r); @@ -189,7 +189,7 @@ template // F models ForwardIterator -F memmove_n(I f, U n, F r) BOOST_NOEXCEPT_OR_NOTHROW +BOOST_CONTAINER_FORCEINLINE F memmove_n(I f, U n, F r) BOOST_NOEXCEPT_OR_NOTHROW { typedef typename boost::container::iterator_traits::value_type value_type; if(BOOST_LIKELY(n)){ @@ -204,7 +204,7 @@ template // F models ForwardIterator -I memmove_n_source(I f, U n, F r) BOOST_NOEXCEPT_OR_NOTHROW +BOOST_CONTAINER_FORCEINLINE I memmove_n_source(I f, U n, F r) BOOST_NOEXCEPT_OR_NOTHROW { if(BOOST_LIKELY(n)){ typedef typename boost::container::iterator_traits::value_type value_type; @@ -218,7 +218,7 @@ template // F models ForwardIterator -I memmove_n_source_dest(I f, U n, F &r) BOOST_NOEXCEPT_OR_NOTHROW +BOOST_CONTAINER_FORCEINLINE I memmove_n_source_dest(I f, U n, F &r) BOOST_NOEXCEPT_OR_NOTHROW { typedef typename boost::container::iterator_traits::value_type value_type; if(BOOST_LIKELY(n)){ @@ -315,7 +315,7 @@ template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_constructible::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_constructible::type uninitialized_move_alloc(Allocator &, I f, I l, F r) BOOST_NOEXCEPT_OR_NOTHROW { return dtl::memmove(f, l, r); } @@ -361,7 +361,7 @@ template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_constructible::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_constructible::type uninitialized_move_alloc_n(Allocator &, I f, typename boost::container::allocator_traits::size_type n, F r) BOOST_NOEXCEPT_OR_NOTHROW { return dtl::memmove_n(f, n, r); } @@ -407,7 +407,7 @@ template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_constructible::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_constructible::type uninitialized_move_alloc_n_source(Allocator &, I f, typename boost::container::allocator_traits::size_type n, F r) BOOST_NOEXCEPT_OR_NOTHROW { return dtl::memmove_n_source(f, n, r); } @@ -452,7 +452,7 @@ template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_constructible::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_constructible::type uninitialized_copy_alloc(Allocator &, I f, I l, F r) BOOST_NOEXCEPT_OR_NOTHROW { return dtl::memmove(f, l, r); } @@ -498,7 +498,7 @@ template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_constructible::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_constructible::type uninitialized_copy_alloc_n(Allocator &, I f, typename boost::container::allocator_traits::size_type n, F r) BOOST_NOEXCEPT_OR_NOTHROW { return dtl::memmove_n(f, n, r); } @@ -543,7 +543,7 @@ template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_constructible::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_constructible::type uninitialized_copy_alloc_n_source(Allocator &, I f, typename boost::container::allocator_traits::size_type n, F r) BOOST_NOEXCEPT_OR_NOTHROW { return dtl::memmove_n_source(f, n, r); } @@ -587,7 +587,7 @@ inline typename dtl::disable_if_memzero_initializable::type template // F models ForwardIterator -inline typename dtl::enable_if_memzero_initializable::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memzero_initializable::type uninitialized_value_init_alloc_n(Allocator &, typename boost::container::allocator_traits::size_type n, F r) { typedef typename boost::container::iterator_traits::value_type value_type; @@ -758,7 +758,7 @@ template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_assignable::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_assignable::type copy_n(I f, U n, F r) BOOST_NOEXCEPT_OR_NOTHROW { return dtl::memmove_n(f, n, r); } @@ -787,7 +787,7 @@ template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_assignable::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_assignable::type copy_n_source(I f, U n, F r) BOOST_NOEXCEPT_OR_NOTHROW { return dtl::memmove_n_source(f, n, r); } @@ -816,7 +816,7 @@ template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_assignable::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_assignable::type copy_n_source_dest(I f, U n, F &r) BOOST_NOEXCEPT_OR_NOTHROW { return dtl::memmove_n_source_dest(f, n, r); } @@ -871,7 +871,7 @@ template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_assignable::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_assignable::type move_n(I f, U n, F r) BOOST_NOEXCEPT_OR_NOTHROW { return dtl::memmove_n(f, n, r); } @@ -898,7 +898,7 @@ inline typename dtl::disable_if_memtransfer_copy_assignable::type template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_assignable::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_assignable::type move_backward(I f, I l, F r) BOOST_NOEXCEPT_OR_NOTHROW { typedef typename boost::container::iterator_traits::value_type value_type; @@ -935,7 +935,7 @@ template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_assignable::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_assignable::type move_n_source_dest(I f, U n, F &r) BOOST_NOEXCEPT_OR_NOTHROW { return dtl::memmove_n_source_dest(f, n, r); } @@ -964,7 +964,7 @@ template // F models ForwardIterator -inline typename dtl::enable_if_memtransfer_copy_assignable::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_memtransfer_copy_assignable::type move_n_source(I f, U n, F r) BOOST_NOEXCEPT_OR_NOTHROW { return dtl::memmove_n_source(f, n, r); } @@ -992,7 +992,7 @@ template // U models unsigned integral constant -inline typename dtl::enable_if_trivially_destructible::type +BOOST_CONTAINER_FORCEINLINE typename dtl::enable_if_trivially_destructible::type destroy_alloc_n(Allocator &, I, U) {}