Class TupleStreamIterator<Tuple> (2.11.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
Name Description
begin RowStreamIterator
end RowStreamIterator

Operators

operator*()

Returns
Type Description
reference

operator->()

Returns
Type Description
pointer

operator*() const

Returns
Type Description
const_reference

operator->() const

Returns
Type Description
const_pointer

operator++()

Returns
Type Description
TupleStreamIterator &

operator++(int)

Parameter
Name Description
int
Returns
Type Description
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