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);
...
}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["This page details the `TupleStream` class, which is used to parse `Tuple` objects from a given range of `RowStreamIterator`s."],["The `TupleStream` class is utilized via a range-for loop with instances created using the `StreamOf\u003cT\u003e(range)` factory function."],["The \"stream\" in `TupleStream` indicates the data source's nature and does not relate to C++'s I/O streams."],["The class provides `begin()` and `end()` functions that return iterators for traversing the `TupleStream`."],["The documentation provides the different versions available for the `TupleStream` class, starting from version `2.11.0` to the latest release candidate version `2.37.0-rc`."]]],[]]