BloombergLP::bsltf::InputIterator

Pure input iterator over a contiguous range of TYPE objects.

Synopsis

Declared in <bsltf_inputiterator.h>

template<class TYPE>
class InputIterator;

Description

Provide an input iterator that can iterate over a contiguous range of objects while supporting no operations other than those defined for LegacyInputIterator.

Type Aliases

NameDescription
difference_type Alias for std::ptrdiff_t.
iterator_category Alias for std::input_iterator_tag.
pointer Alias for a pointer to TYPE.
reference Alias for a reference to TYPE.
value_type Alias for the iterated TYPE.

Member Functions

NameDescription
InputIterator [constructor]Constructors
operator* Return a const reference to the TYPE object referred to by this iterator. The behavior is undefined if this iterator is empty.
operator++ Increment operators
operator-> Return a pointer to the TYPE object referred to by this iterator. The behavior is undefined if this iterator is empty.

Friends

NameDescription
BloombergLP::bsltf::operator!=Return true if the specified iterators do not refer to the same underlying position, and false otherwise.
BloombergLP::bsltf::operator==Return whether the specified iterators refer to the same position.

Non-Member Functions

NameDescription
operator!=Return true if the specified lhs and rhs do not refer to the same TYPE object and false othersise.
operator==Return whether two input iterators refer to the same position.