|
BDE 4.14.0 Production release
|
#include <bslstl_array.h>
Public Types | |
| typedef VALUE_TYPE | value_type |
| typedef VALUE_TYPE * | pointer |
| typedef const VALUE_TYPE * | const_pointer |
| typedef VALUE_TYPE & | reference |
| typedef const VALUE_TYPE & | const_reference |
| typedef size_t | size_type |
| typedef ptrdiff_t | difference_type |
| typedef pointer | iterator |
| typedef const_pointer | const_iterator |
| typedef bsl::reverse_iterator< iterator > | reverse_iterator |
| typedef bsl::reverse_iterator< const_iterator > | const_reverse_iterator |
Public Attributes | |
| VALUE_TYPE | d_data [(0==SIZE) ? 1 :SIZE] |
| void swap(array &rhs) BSLS_KEYWORD_NOEXCEPT_SPECIFICATION(bsl BSLS_KEYWORD_CONSTEXPR_CPP14 iterator | begin () BSLS_KEYWORD_NOEXCEPT |
This class template provides a standard conforming implementation of std::array. array is an aggregate wrapper around a raw array, supporting aggregate initialization and an iterator interface as required for a standard container.
| typedef const_pointer bsl::array< VALUE_TYPE, SIZE >::const_iterator |
| typedef const VALUE_TYPE* bsl::array< VALUE_TYPE, SIZE >::const_pointer |
| typedef const VALUE_TYPE& bsl::array< VALUE_TYPE, SIZE >::const_reference |
| typedef bsl::reverse_iterator<const_iterator> bsl::array< VALUE_TYPE, SIZE >::const_reverse_iterator |
| typedef ptrdiff_t bsl::array< VALUE_TYPE, SIZE >::difference_type |
| typedef pointer bsl::array< VALUE_TYPE, SIZE >::iterator |
| typedef VALUE_TYPE* bsl::array< VALUE_TYPE, SIZE >::pointer |
| typedef VALUE_TYPE& bsl::array< VALUE_TYPE, SIZE >::reference |
| typedef bsl::reverse_iterator<iterator> bsl::array< VALUE_TYPE, SIZE >::reverse_iterator |
| typedef size_t bsl::array< VALUE_TYPE, SIZE >::size_type |
| typedef VALUE_TYPE bsl::array< VALUE_TYPE, SIZE >::value_type |
|
default |
Create an array object. Every element is default constructed if VALUE_TYPE is default constructible; otherwise, array is not default constructible.
|
default |
Create an array object having the same value as the specified original object. Every element is copy constructed from the corresponding element in the specified original if VALUE_TYPE is copy constructible; otherwise, array is not copy constructible. Only in C++11 and later.
|
default |
Create an array object having the same value as the specified original object. Every element is move constructed from the corresponding element in the specified original if VALUE_TYPE is move constructible; otherwise, array is not move constructible.
|
default |
Destroy this object. Evert element is destroyed if VALUE_TYPE is destructible; otherwise, array is not destructible.
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::reference bsl::array< VALUE_TYPE, SIZE >::at | ( | size_type | position | ) |
Return a reference to the element at the specified position in this array. Throw an out_of_range exception if position >= size().
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::const_reference bsl::array< VALUE_TYPE, SIZE >::at | ( | size_type | position | ) | const |
Return a reference providing non-modifiable access to the element at the specified position in this array. Throw an out_of_range exception if position >= size().
| array< VALUE_TYPE, SIZE >::reference BSLS_KEYWORD_CONSTEXPR_CPP14 bsl::array< VALUE_TYPE, SIZE >::back | ( | ) |
Return a reference to the last element in this array. The behavior is undefined unless SIZE > 0.
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::const_reference bsl::array< VALUE_TYPE, SIZE >::back | ( | ) | const |
Return a reference providing non-modifiable access to the last element in this array. Behavior is undefined unless SIZE > 0.
| BSLS_KEYWORD_CONSTEXPR_CPP14 const_iterator bsl::array< VALUE_TYPE, SIZE >::begin | ( | ) | const |
Return an iterator providing non-modifiable access to the first element in this array; return a past-the-end iterator if this array has size 0.
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::const_iterator bsl::array< VALUE_TYPE, SIZE >::cbegin | ( | ) | const |
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::const_iterator bsl::array< VALUE_TYPE, SIZE >::cend | ( | ) | const |
| BSLS_KEYWORD_CONSTEXPR_CPP17 array< VALUE_TYPE, SIZE >::const_reverse_iterator bsl::array< VALUE_TYPE, SIZE >::crbegin | ( | ) | const |
| BSLS_KEYWORD_CONSTEXPR_CPP17 array< VALUE_TYPE, SIZE >::const_reverse_iterator bsl::array< VALUE_TYPE, SIZE >::crend | ( | ) | const |
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::iterator bsl::array< VALUE_TYPE, SIZE >::data | ( | ) |
Return the address of the first element of the underlying raw array. Return a valid T* which cannot be dereferenced if the SIZE is 0.
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::const_iterator bsl::array< VALUE_TYPE, SIZE >::data | ( | ) | const |
Return the address of the first element of the underlying raw array. Return a valid T* which cannot be dereferenced if the SIZE is 0.
| BSLS_KEYWORD_CONSTEXPR bool bsl::array< VALUE_TYPE, SIZE >::empty | ( | ) | const |
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::iterator bsl::array< VALUE_TYPE, SIZE >::end | ( | ) |
Return a past-the-end iterator providing modifiable access to this array.
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::const_iterator bsl::array< VALUE_TYPE, SIZE >::end | ( | ) | const |
Return a past-the-end iterator providing non-modifiable access to this array.
| void bsl::array< VALUE_TYPE, SIZE >::fill | ( | const VALUE_TYPE & | value | ) |
Set every element in this array to the specified value using the operator= of value_type.
| array< VALUE_TYPE, SIZE >::reference BSLS_KEYWORD_CONSTEXPR_CPP14 bsl::array< VALUE_TYPE, SIZE >::front | ( | ) |
Return a reference to the first element in this array. The behavior is undefined unless SIZE > 0.
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::const_reference bsl::array< VALUE_TYPE, SIZE >::front | ( | ) | const |
Return a reference providing non-modifiable access to the first element in this array. The behavior is undefined unless SIZE > 0.
| BSLS_KEYWORD_CONSTEXPR size_t bsl::array< VALUE_TYPE, SIZE >::max_size | ( | ) | const |
| array & bsl::array< VALUE_TYPE, SIZE >::operator= | ( | array< VALUE_TYPE, SIZE > && | other | ) |
Moves every element in the specified other into the corresponding element in this array in the if VALUE_TYPE is moves assignable; otherwise, array is not move assignable.
| array & bsl::array< VALUE_TYPE, SIZE >::operator= | ( | const array< VALUE_TYPE, SIZE > & | other | ) |
Sets every element in this array to the corresponding element in the specified other if VALUE_TYPE is copy assignable; otherwise, array is not copy assignable.
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::reference bsl::array< VALUE_TYPE, SIZE >::operator[] | ( | size_type | position | ) |
Return a reference providing modifiable access to the element at the specified position in this array. The behavior is undefined unless position < size().
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::const_reference bsl::array< VALUE_TYPE, SIZE >::operator[] | ( | size_type | position | ) | const |
Return a reference providing non-modifiable access to the element at the specified position in this array. The behavior is undefined unless position < size().
| BSLS_KEYWORD_CONSTEXPR_CPP17 array< VALUE_TYPE, SIZE >::reverse_iterator bsl::array< VALUE_TYPE, SIZE >::rbegin | ( | ) |
Return a reverse iterator providing modifiable access to the last element in this array; return a past-the-end iterator if this array has size 0.
| BSLS_KEYWORD_CONSTEXPR_CPP17 array< VALUE_TYPE, SIZE >::const_reverse_iterator bsl::array< VALUE_TYPE, SIZE >::rbegin | ( | ) | const |
Return a reverse iterator providing non-modifiable access to the last element in this array, and the past-the-end reverse iterator if this array has size 0.
| BSLS_KEYWORD_CONSTEXPR_CPP17 array< VALUE_TYPE, SIZE >::reverse_iterator bsl::array< VALUE_TYPE, SIZE >::rend | ( | ) |
Return the past-the-end reverse iterator providing modifiable access to this array.
| BSLS_KEYWORD_CONSTEXPR_CPP17 array< VALUE_TYPE, SIZE >::const_reverse_iterator bsl::array< VALUE_TYPE, SIZE >::rend | ( | ) | const |
Return the past-the-end reverse iterator providing non-modifiable access to this array.
| BSLS_KEYWORD_CONSTEXPR size_t bsl::array< VALUE_TYPE, SIZE >::size | ( | ) | const |
| BSLS_KEYWORD_CONSTEXPR_CPP14 array< VALUE_TYPE, SIZE >::const_iterator bsl::array< VALUE_TYPE, SIZE >::begin |
Exchange each corresponding element between this array and the specified rhs array by calling swap(a,b) where swap is found by overload resolution including at least the namespaces std and the associated namespaces of VALUE_TYPE. Return an iterator providing modifiable access to the first element in this array; return a past-the-end iterator if this array has size 0.
| VALUE_TYPE bsl::array< VALUE_TYPE, SIZE >::d_data[(0==SIZE) ? 1 :SIZE] |