Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion > Struct Template Reference

This struct deallocates and allocated memory. More...

#include <vector.hpp>

Inheritance diagram for boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >:
Collaboration diagram for boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >:

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 pointerstart () const BOOST_CONTAINER_NOEXCEPT
 
const size_typecapacity () 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
 

Detailed Description

template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
struct boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >

This struct deallocates and allocated memory.

Member Typedef Documentation

template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
typedef boost::container::allocator_traits<Allocator> boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::allocator_traits_type
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
typedef allocator_traits_type::pointer boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::pointer
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
typedef allocator_traits_type::size_type boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::size_type
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
typedef allocator_traits_type::value_type boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::value_type

Constructor & Destructor Documentation

template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::vector_alloc_holder ( )
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
template<class AllocConvertible >
boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::vector_alloc_holder ( BOOST_FWD_REF(AllocConvertible)  a)
inlineexplicit
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
template<class AllocConvertible >
boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::vector_alloc_holder ( uninitialized_size_t  ,
BOOST_FWD_REF(AllocConvertible)  a,
size_type  initial_size 
)
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::vector_alloc_holder ( uninitialized_size_t  ,
size_type  initial_size 
)
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::vector_alloc_holder ( BOOST_RV_REF(vector_alloc_holder< Allocator, AllocatorVersion >)  holder)
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::~vector_alloc_holder ( )
inline

Member Function Documentation

template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
const Allocator& boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::alloc ( ) const
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
std::pair<pointer, bool> boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::allocation_command ( boost::container::allocation_type  command,
size_type  limit_size,
size_type  preferred_size,
size_type received_size,
const pointer reuse = pointer() 
)
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
const size_type& boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::capacity ( ) const
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
void boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::capacity ( const size_type c)
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
void boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::first_allocation_same_allocator_type ( size_type  cap)
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
void boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::move_from_empty ( vector_alloc_holder< Allocator, AllocatorVersion > &  x)
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
size_type boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::next_capacity ( size_type  additional_objects) const
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
const pointer& boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::start ( ) const
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
void boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::start ( const pointer p)
inline
template<class Allocator, class AllocatorVersion = typename container_detail::version<Allocator>::type>
void boost::container::container_detail::vector_alloc_holder< Allocator, AllocatorVersion >::swap ( vector_alloc_holder< Allocator, AllocatorVersion > &  x)
inline

Member Data Documentation


The documentation for this struct was generated from the following file: