This struct deallocates and allocated memory. More...
#include <vector.hpp>
Public Types | |
typedef boost::container::allocator_traits < Allocator > | allocator_traits_type |
typedef allocator_traits_type::pointer | pointer |
typedef allocator_traits_type::size_type | size_type |
typedef allocator_traits_type::value_type | value_type |
Public Member Functions | |
vector_alloc_holder () BOOST_CONTAINER_NOEXCEPT_IF( | |
template<class AllocConvertible > | |
vector_alloc_holder (BOOST_FWD_REF(AllocConvertible) a) BOOST_CONTAINER_NOEXCEPT | |
template<class AllocConvertible > | |
vector_alloc_holder (uninitialized_size_t, BOOST_FWD_REF(AllocConvertible) a, size_type initial_size) | |
vector_alloc_holder (uninitialized_size_t, size_type initial_size) | |
vector_alloc_holder (BOOST_RV_REF(vector_alloc_holder) holder) BOOST_CONTAINER_NOEXCEPT | |
void | first_allocation (size_type cap) |
void | first_allocation_same_allocator_type (size_type cap) |
~vector_alloc_holder () BOOST_CONTAINER_NOEXCEPT | |
std::pair< pointer, bool > | allocation_command (boost::container::allocation_type command, size_type limit_size, size_type preferred_size, size_type &received_size, const pointer &reuse=pointer()) |
size_type | next_capacity (size_type additional_objects) const |
void | swap (vector_alloc_holder &x) BOOST_CONTAINER_NOEXCEPT |
void | move_from_empty (vector_alloc_holder &x) BOOST_CONTAINER_NOEXCEPT |
Allocator & | alloc () BOOST_CONTAINER_NOEXCEPT |
const Allocator & | alloc () const BOOST_CONTAINER_NOEXCEPT |
const pointer & | start () const BOOST_CONTAINER_NOEXCEPT |
const size_type & | capacity () const BOOST_CONTAINER_NOEXCEPT |
void | start (const pointer &p) BOOST_CONTAINER_NOEXCEPT |
void | capacity (const size_type &c) BOOST_CONTAINER_NOEXCEPT |
Public Attributes | |
pointer | m_start |
size_type | m_size |
size_type | m_capacity |
This struct deallocates and allocated memory.
typedef boost::container::allocator_traits<Allocator> boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::allocator_traits_type |
typedef allocator_traits_type::pointer boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::pointer |
typedef allocator_traits_type::size_type boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::size_type |
typedef allocator_traits_type::value_type boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::value_type |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by boost::container::container_detail::vector_alloc_holder< Allocator, alloc_version >::allocation_command(), boost::container::container_detail::vector_alloc_holder< Allocator, alloc_version >::next_capacity(), boost::container::container_detail::vector_alloc_holder< Allocator, container_detail::integral_constant< unsigned, 0 > >::vector_alloc_holder(), and boost::container::container_detail::vector_alloc_holder< Allocator, alloc_version >::~vector_alloc_holder().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
size_type boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::m_capacity |
Referenced by boost::container::container_detail::vector_alloc_holder< Allocator, alloc_version >::capacity(), boost::container::container_detail::vector_alloc_holder< Allocator, alloc_version >::first_allocation(), boost::container::container_detail::vector_alloc_holder< Allocator, alloc_version >::next_capacity(), boost::container::container_detail::vector_alloc_holder< Allocator, alloc_version >::vector_alloc_holder(), and boost::container::container_detail::vector_alloc_holder< Allocator, alloc_version >::~vector_alloc_holder().
size_type boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::m_size |
pointer boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::m_start |
Referenced by boost::container::container_detail::vector_alloc_holder< Allocator, alloc_version >::first_allocation(), boost::container::container_detail::vector_alloc_holder< Allocator, alloc_version >::start(), boost::container::container_detail::vector_alloc_holder< Allocator, alloc_version >::vector_alloc_holder(), and boost::container::container_detail::vector_alloc_holder< Allocator, alloc_version >::~vector_alloc_holder().