BDE 4.14.0 Production release
|
#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 |
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).
See bslstl_vector
typedef VALUE_TYPE const* bsl::vectorBase< VALUE_TYPE >::const_iterator |
typedef VALUE_TYPE const& bsl::vectorBase< VALUE_TYPE >::const_reference |
typedef bsl::reverse_iterator<const_iterator> bsl::vectorBase< VALUE_TYPE >::const_reverse_iterator |
typedef std::ptrdiff_t bsl::vectorBase< VALUE_TYPE >::difference_type |
typedef VALUE_TYPE* bsl::vectorBase< VALUE_TYPE >::iterator |
typedef VALUE_TYPE& bsl::vectorBase< VALUE_TYPE >::reference |
typedef bsl::reverse_iterator<iterator> bsl::vectorBase< VALUE_TYPE >::reverse_iterator |
typedef std::size_t bsl::vectorBase< VALUE_TYPE >::size_type |
typedef VALUE_TYPE bsl::vectorBase< VALUE_TYPE >::value_type |
|
inline |
|
inline |
Adopt all outstanding memory allocations associated with the specified base
object. The behavior is undefined unless this object is in a default-constructed state.
vectorBase< VALUE_TYPE >::reference bsl::vectorBase< VALUE_TYPE >::at | ( | size_type | position | ) |
Return a reference providing modifiable access to the element at the specified position
in this vector. Throw a std::out_of_range
exception if position >= size()
.
vectorBase< VALUE_TYPE >::const_reference bsl::vectorBase< VALUE_TYPE >::at | ( | size_type | position | ) | const |
Return a reference providing non-modifiable access to the element at the specified position
in this vector. Throw a bsl::out_of_range
exception if position >= size()
.
|
inline |
Return a reference providing modifiable access to the last element in this vector. The behavior is undefined unless this vector is not empty.
|
inline |
Return a reference providing non-modifiable access to the last element in this vector. The behavior is undefined unless this vector is not empty.
|
inline |
Return an iterator providing modifiable access to the first element in this vector, or the past-the-end iterator if this vector is empty.
|
inline |
|
inline |
Return the capacity of this vector, i.e., the maximum number of elements for which resizing is guaranteed not to trigger a reallocation.
|
inline |
Return an iterator providing non-modifiable access to the first element in this vector, and the past-the-end iterator if this vector is empty.
|
inline |
Return the past-the-end (forward) iterator providing non-modifiable access to this vector.
|
inline |
Return a reverse iterator providing non-modifiable access to the last element in this vector, and the past-the-end reverse iterator if this vector is empty.
|
inline |
Return the past-the-end reverse iterator providing non-modifiable access to this vector.
|
inline |
Return the address of the modifiable first element in this vector, or a valid, but non-dereferenceable pointer value if this vector is empty.
|
inline |
Return the address of the non-modifiable first element in this vector, or a valid, but non-dereferenceable pointer value if this vector is empty.
|
inline |
|
inline |
Return the past-the-end iterator providing modifiable access to this vector.
|
inline |
|
inline |
Return a reference providing modifiable access to the first element in this vector. The behavior is undefined unless this vector is not empty.
|
inline |
Return a reference providing non-modifiable access to the first element in this vector. The behavior is undefined unless this vector is not empty.
|
inline |
Return a reference providing modifiable access to the element at the specified position
in this vector. The behavior is undefined unless position < size()
.
|
inline |
Return a reference providing non-modifiable access to the element at the specified position
in this vector. The behavior is undefined unless position < size()
.
|
inline |
Return a reverse iterator providing modifiable access to the last element in this vector, and the past-the-end reverse iterator if this vector is empty.
|
inline |
|
inline |
Return the past-the-end reverse iterator providing modifiable access to this vector.
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |