STL‐conforming input iterator over values used for testing.

Synopsis

Declared in <bsltf_testvaluesarray.h>

template<class VALUE>
class TestValuesArrayIterator;

Description

This class provide a STL‐conforming input iterator over values used for testing (see section [24.2.3 input.iterators]of the C++11 standard. A TestValuesArrayIterator provide access to elements of parameterized type VALUE. An iterator is considered dereferenceable all of the following are satisfied: 1. The iterator refers to a valid element (not end). 2. The iterator has not been dereferenced. 3. The iterator is not a copy of another iterator of which operator++ have been invoked. An iterator is comparable if the iterator is not a copy of another iterator of which operator++ have been invoked.

This class is not thread‐safe: different iterator objects manipulate shared state without synchronization. This is rarely a concern for the test scenarios supported by this component.

Type Aliases

Name

Description

difference_type

Alias for ptrdiff_t.

iterator_category

Alias for std::input_iterator_tag.

pointer

Alias for a pointer to const VALUE.

reference

Alias for a reference to const VALUE.

value_type

Alias for the iterated VALUE.

Member Functions

Name

Description

TestValuesArrayIterator [constructor]

Constructors

operator=

Assign to this object the value of the specified other object. The behavior is undefined unless other is valid.

address

Return the position (address) referenced by this iterator.

operator*

Return the value referred to by this object.

operator++

Increment operators

operator‐>

Return the address of the element at which this iterator is positioned.

Friends

Name

Description

BloombergLP::bsltf::operator!=

Return true if the specified sentinel and iterator do not refer to the same element, and false otherwise.

BloombergLP::bsltf::operator!=

Return true if the specified iterator and sentinel do not refer to the same element, and false otherwise.

BloombergLP::bsltf::operator==

Return true if the specified sentinel and iterator refer to the same element, and false otherwise.

BloombergLP::bsltf::operator==

Return true if the specified iterator and sentinel refer to the same element, and false otherwise.

BloombergLP::bsltf::operator!=

Return true if the specified iterators do not refer to the same element, and false otherwise.

BloombergLP::bsltf::operator==

Return true if the specified iterators refer to the same element, and false otherwise.

Non-Member Functions

Name

Description

operator!=

Return true if lhs and rhs do not refer to the same element.

operator!=

Return true if lhs and rhs do not refer to the same element.

operator==

Return true if lhs and rhs refer to the same element.

operator==

Return true if lhs and rhs refer to the same element.

Created with MrDocs