Quick Links: |
#include <bslstl_vector.h>
Public Types | |
typedef VALUE_TYPE | value_type |
typedef VALUE_TYPE & | reference |
typedef VALUE_TYPE const & | const_reference |
typedef VALUE_TYPE * | iterator |
typedef VALUE_TYPE const * | const_iterator |
typedef std::size_t | size_type |
typedef std::ptrdiff_t | difference_type |
typedef bsl::reverse_iterator < iterator > | reverse_iterator |
typedef bsl::reverse_iterator < const_iterator > | const_reverse_iterator |
Public Member Functions | |
vectorBase () | |
void | adopt (BloombergLP::bslmf::MovableRef< vectorBase > base) |
iterator | begin () BSLS_KEYWORD_NOEXCEPT |
iterator | end () BSLS_KEYWORD_NOEXCEPT |
reverse_iterator | rbegin () BSLS_KEYWORD_NOEXCEPT |
reverse_iterator | rend () BSLS_KEYWORD_NOEXCEPT |
reference | operator[] (size_type position) |
reference | at (size_type position) |
reference | front () |
reference | back () |
VALUE_TYPE * | data () BSLS_KEYWORD_NOEXCEPT |
const_iterator | begin () const BSLS_KEYWORD_NOEXCEPT |
const_iterator | cbegin () const BSLS_KEYWORD_NOEXCEPT |
const_iterator | end () const BSLS_KEYWORD_NOEXCEPT |
const_iterator | cend () const BSLS_KEYWORD_NOEXCEPT |
const_reverse_iterator | rbegin () const BSLS_KEYWORD_NOEXCEPT |
const_reverse_iterator | crbegin () const BSLS_KEYWORD_NOEXCEPT |
const_reverse_iterator | rend () const BSLS_KEYWORD_NOEXCEPT |
const_reverse_iterator | crend () const BSLS_KEYWORD_NOEXCEPT |
size_type | size () const BSLS_KEYWORD_NOEXCEPT |
size_type | capacity () const BSLS_KEYWORD_NOEXCEPT |
bool | empty () const BSLS_KEYWORD_NOEXCEPT |
const_reference | operator[] (size_type position) const |
const_reference | at (size_type position) const |
const_reference | front () const |
const_reference | back () const |
const VALUE_TYPE * | data () const BSLS_KEYWORD_NOEXCEPT |
Protected Attributes | |
VALUE_TYPE * | d_dataBegin_p |
VALUE_TYPE * | d_dataEnd_p |
std::size_t | d_capacity |
This class describes the basic layout for a vector class, to be included into the vector
layout before the allocator (provided by bslalg::ContainerBase
) to take better advantage of cache prefetching. It is parameterized by VALUE_TYPE
only, and implements the portion of vector
that does not need to know about its (template parameter) type ALLOCATOR
(in order to generate shorter debug strings). This class intentionally has no creators (other than the compiler-generated ones).