Class TupleStreamIterator<Tuple> (2.19.0)

A TupleStreamIterator<Tuple> is an "Input Iterator" that wraps a RowStreamIterator, parsing its elements into a sequence of StatusOr<Tuple> objects.

As an Input Iterator, the sequence may only be consumed once. See https://en.cppreference.com/w/cpp/named_req/InputIterator for more details.

Default constructing this object creates an instance that represents "end".

Each Row returned by the wrapped RowStreamIterator must be convertible to the specified Tuple template parameter.

Constructors

TupleStreamIterator()

Default constructs an "end" iterator.

TupleStreamIterator(RowStreamIterator, RowStreamIterator)

Creates an iterator that wraps the given RowStreamIterator range.

Parameters
NameDescription
begin RowStreamIterator
end RowStreamIterator

Operators

operator*()

Returns
TypeDescription
reference

operator->()

Returns
TypeDescription
pointer

operator*() const

Returns
TypeDescription
const_reference

operator->() const

Returns
TypeDescription
const_pointer

operator++()

Returns
TypeDescription
TupleStreamIterator &

operator++(int)

Parameter
NameDescription
int
Returns
TypeDescription
TupleStreamIterator

Type Aliases

iterator_category

Alias Of: std::input_iterator_tag

Iterator type aliases

value_type

Alias Of: StatusOr< Tuple >

Iterator type aliases

difference_type

Alias Of: std::ptrdiff_t

Iterator type aliases

pointer

Alias Of: value_type *

Iterator type aliases

reference

Alias Of: value_type &

Iterator type aliases

const_pointer

Alias Of: value_type const *

Iterator type aliases

const_reference

Alias Of: value_type const &

Iterator type aliases