This class provides a container to store values of the (template parameter) type VALUE, and also provides the iterators to access the values. The iterators are designed to conform to a standard input iterator, and report any misuse of the iterator.
Declared in <bsltf_testvaluesarray.h>
template<
class VALUE,
class ALLOCATOR = bsl::allocator<VALUE>,
class CONVERTER = TestValuesArray_DefaultConverter<VALUE, ALLOCATOR>,
bool USE_SENTINEL = false>
class TestValuesArray;
| Name | Description |
|---|---|
ConstEndReturnType | Alias for the type returned by end() const; either const_sentinel or const_iterator depending on USE_SENTINEL. |
EndReturnType | Alias for the type returned by end(); either sentinel or iterator depending on USE_SENTINEL. |
const_iterator | Alias for the const input iterator over this container. |
const_sentinel | Alias for the const end sentinel for this container. |
iterator | Alias for the mutable input iterator over this container. |
sentinel | Alias for the mutable end sentinel for this container. |
| Name | Description |
|---|---|
TestValuesArray [constructor] | Constructors |
~TestValuesArray [destructor] | Destroy this container and all contained elements. |
begin | Return an iterator providing non-modifiable access to the first VALUE object in the sequence of VALUE objects maintained by this container, or the end iterator if this container is empty. |
data | Return the address of the non-modifiable first element in this container. |
end | end overloads |
index | Return an iterator to the element at the specified position. The behavior is undefined unless position <= size(). |
operator[] | Return a reference providing non-modifiable access to the element at the specified index. The behavior is undefined unless 0 < size() && index < size(). |
privateEnd | privateEnd overloads |
resetIterators | Make all iterators dereferenceable and comparable again. |
size | Return number of elements in this container. |