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 =... usingRowType= std::tuple<std::int64_t, std::string,bool>; for(autoconst& 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-04-17 UTC."],[[["This webpage provides documentation for the `TupleStream` class in the Google Cloud Spanner C++ library, with versions ranging from 2.11.0 to the latest release candidate 2.37.0-rc."],["`TupleStream` defines a range that parses `Tuple` objects from a given range of `RowStreamIterator`s, allowing iteration over rows."],["Instances of `TupleStream` are created using the `StreamOf\u003cT\u003e(range)` factory function, where `T` represents the desired row type."],["The class is used in range-for loops to process data, with error handling available for each row, and the iterators for this class are called `TupleStreamIterator`."],["`TupleStream` supports `begin()` and `end()` functions to obtain iterators for traversing the stream, allowing for use in traditional C++ range-based loops."]]],[]]