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-03-21 UTC."],[[["This webpage provides documentation for the `TupleStream` class within 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 specific class details."],["`TupleStream` instances are created via the `StreamOf\u003cT\u003e(range)` factory function, and they are designed for use in range-for loops to iterate over rows, offering error handling capabilities within the iteration."],["The term \"stream\" in `TupleStream` refers to the nature of the data source and does not imply any relation to C++'s I/O streams, with the class being syntactically defined as a \"range\" with `TupleStreamIterator`s."],["The documentation provides two functions, `begin()` and `end()`, for iterating through the stream, and defines `iterator` as an alias of `TupleStreamIterator\u003cTuple\u003e`."]]],[]]