CppELib 1.7.0
|
STL-like deque container using pre-allocated buffer. More...
#include <PreallocatedDeque.h>
Public Types | |
typedef T | value_type |
typedef std::size_t | size_type |
typedef std::ptrdiff_t | difference_type |
typedef PreallocatedDeque_iterator< T, T &, T *, PreallocatedDeque * > | iterator |
typedef PreallocatedDeque_iterator< T, const T &, const T *, const PreallocatedDeque * > | const_iterator |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef std::reverse_iterator< iterator > | reverse_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
STL-like deque container using pre-allocated buffer.
T | Type of element |
Almost all the method specification is similar as STL deque, but this container can not expand the capacity.
Over capacity addition of element throws the exception derived from std::exception. But if CPPELIB_NO_EXCEPTIONS macro is defined, aborted instead of the exception.
typedef PreallocatedDeque_iterator<T, const T&, const T*, const PreallocatedDeque*> Container::PreallocatedDeque< T >::const_iterator |
typedef const value_type* Container::PreallocatedDeque< T >::const_pointer |
typedef const value_type& Container::PreallocatedDeque< T >::const_reference |
typedef std::reverse_iterator<const_iterator> Container::PreallocatedDeque< T >::const_reverse_iterator |
typedef std::ptrdiff_t Container::PreallocatedDeque< T >::difference_type |
typedef PreallocatedDeque_iterator<T, T&, T*, PreallocatedDeque*> Container::PreallocatedDeque< T >::iterator |
typedef value_type* Container::PreallocatedDeque< T >::pointer |
typedef value_type& Container::PreallocatedDeque< T >::reference |
typedef std::reverse_iterator<iterator> Container::PreallocatedDeque< T >::reverse_iterator |
typedef std::size_t Container::PreallocatedDeque< T >::size_type |
|
inline |
Default constructor.
|
inline |
Constructor.
preallocated_buffer | Pre-allocated buffer by caller |
buffer_size | Number of bytes of preallocated_buffer |
|
inline |
Destructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Initialize.
preallocated_buffer | Pre-allocated buffer by caller |
buffer_size | Number of bytes of preallocated_buffer |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |