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-21 UTC."],[[["The latest version of the `TupleStream` documentation is 2.37.0-rc, and it is used to read data from a range."],["`TupleStream` is a class that parses `Tuple` objects from a range of `RowStreamIterator` objects."],["Users can create `TupleStream` instances using the `StreamOf\u003cT\u003e(range)` non-member factory function."],["`TupleStream` objects are designed for use in range-for loops to iterate over rows, handling potential errors during iteration."],["The class provides `begin()` and `end()` functions that return an iterator, as well as a `TupleStreamIterator` alias named `iterator`."]]],[]]