Add BOOST_CONTAINER_FORCEINLINE to trivial functions

This commit is contained in:
Ion Gaztañaga
2023-01-18 23:46:30 +01:00
parent 2e7983f997
commit cfa3dda60e

View File

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