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 webpage provides documentation for the `TupleStream` class in the Google Cloud Spanner C++ library, detailing its functionality for parsing `Tuple` objects from a range of `RowStreamIterator`s."],["The most recent version documented is 2.37.0-rc, with a comprehensive list of previous versions ranging back to 2.11.0 for users to access the respective documentation."],["`TupleStream` is designed to work within a range-based for loop, simplifying the handling of data extraction and error management with a row-by-row iterator."],["The `TupleStream` is a range defined by two `TupleStreamIterator` objects and is not related to the C++ I/O streams library."],["The page also defines type aliases, specifically `iterator`, which is an alias for `TupleStreamIterator\u003cTuple\u003e`."]]],[]]