CppELib 1.7.0
|
STL-like vector container using pre-allocated buffer. More...
#include <PreallocatedVector.h>
Public Types | |
typedef T | value_type |
typedef std::size_t | size_type |
typedef std::ptrdiff_t | difference_type |
typedef value_type * | iterator |
typedef const value_type * | 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 vector container using pre-allocated buffer.
T | Type of element |
Almost all the method specification is similar as STL vector, 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 const value_type* Container::PreallocatedVector< T >::const_iterator |
typedef const value_type* Container::PreallocatedVector< T >::const_pointer |
typedef const value_type& Container::PreallocatedVector< T >::const_reference |
typedef std::reverse_iterator<const_iterator> Container::PreallocatedVector< T >::const_reverse_iterator |
typedef std::ptrdiff_t Container::PreallocatedVector< T >::difference_type |
typedef value_type* Container::PreallocatedVector< T >::iterator |
typedef value_type* Container::PreallocatedVector< T >::pointer |
typedef value_type& Container::PreallocatedVector< T >::reference |
typedef std::reverse_iterator<iterator> Container::PreallocatedVector< T >::reverse_iterator |
typedef std::size_t Container::PreallocatedVector< 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 |
|
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 |