Use selective BOOST_CONTAINER_FORCEINLINE on simple forwarding functions

This commit is contained in:
Ion Gaztañaga
2025-09-20 00:37:56 +02:00
parent e7d5add69e
commit 8834ab0880

View File

@@ -272,7 +272,7 @@ struct insert_nonmovable_emplace_proxy
{}
template<class Iterator>
inline void uninitialized_copy_n_and_update(Allocator &a, Iterator p, std::size_t n)
BOOST_CONTAINER_FORCEINLINE void uninitialized_copy_n_and_update(Allocator &a, Iterator p, std::size_t n)
{ this->priv_uninitialized_copy_some_and_update(a, index_tuple_t(), p, n); }
private:
@@ -303,7 +303,7 @@ struct insert_emplace_proxy
{}
template<class Iterator>
inline void copy_n_and_update(Allocator &a, Iterator p, std::size_t n)
BOOST_CONTAINER_FORCEINLINE void copy_n_and_update(Allocator &a, Iterator p, std::size_t n)
{ this->priv_copy_some_and_update(a, index_tuple_t(), p, n); }
private:
@@ -327,6 +327,7 @@ struct insert_emplace_proxy
}
};
//Specializations to avoid an unneeded temporary when emplacing from a single argument o type value_type
template<class Allocator>
struct insert_emplace_proxy<Allocator, typename boost::container::allocator_traits<Allocator>::value_type>