Class TupleStream<Tuple> (2.32.0)

A TupleStream<Tuple> defines a range that parses Tuple objects from the given range of RowStreamIterators.

Users create instances using the StreamOf<T>(range) non-member factory function (defined below). The following is a typical usage of this class in a range-for loop.

auto row_range = ...
using RowType = std::tuple<std::int64_t, std::string, bool>;
for (auto const& row : StreamOf<RowType>(row_range)) {
  if (!row) {
    // Handle error;
  }
  std::int64_t x = std::get<0>(*row);
  ...
}

Functions

begin() const

Returns
Type Description
iterator

end() const

Returns
Type Description
iterator

Type Aliases

iterator

Alias Of: TupleStreamIterator< Tuple >