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
std::input_iterator_tag
Iterator type aliases
value_type
StatusOr< Tuple >
Iterator type aliases
difference_type
std::ptrdiff_t
Iterator type aliases
pointer
value_type *
Iterator type aliases
reference
value_type &
Iterator type aliases
const_pointer
value_type const *
Iterator type aliases
const_reference
value_type const &
Iterator type aliases