Don't use BOOST_CONTAINER_FORCEINLINE extensively, due to potential code bloat

This commit is contained in:
Ion Gaztañaga committed 2023-05-10 22:09:01 +02:00
1 parent 9c852071f9
commit 1a4a205ea6
32 files changed
+1966 -2001

No files matched your search

@@ -84,21 +84,21 @@ class private_node_pool_impl
{}
//!Destructor. Deallocates all allocated blocks. Never throws
BOOST_CONTAINER_FORCEINLINE ~private_node_pool_impl()
inline ~private_node_pool_impl()
{ this->purge_blocks(); }
BOOST_CONTAINER_FORCEINLINE size_type get_real_num_node() const
inline size_type get_real_num_node() const
{ return m_nodes_per_block; }
//!Returns the segment manager. Never throws
BOOST_CONTAINER_FORCEINLINE segment_manager_base_type* get_segment_manager_base()const
inline segment_manager_base_type* get_segment_manager_base()const
{ return boost::movelib::to_raw_pointer(mp_segment_mngr_base); }
BOOST_CONTAINER_FORCEINLINE void *allocate_node()
inline void *allocate_node()
{ return this->priv_alloc_node(); }
//!Deallocates an array pointed by ptr. Never throws
BOOST_CONTAINER_FORCEINLINE void deallocate_node(void *ptr)
inline void deallocate_node(void *ptr)
{ this->priv_dealloc_node(ptr); }
//!Allocates a singly linked list of n nodes ending in null pointer.
@@ -205,7 +205,7 @@ class private_node_pool_impl
, backup_list.size());
}
BOOST_CONTAINER_FORCEINLINE size_type num_free_nodes()
inline size_type num_free_nodes()
{ return m_freelist.size(); }
//!Deallocates all used memory. Precondition: all nodes allocated from this pool should