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-02 UTC."],[[["The webpage details the `TupleStream` class in the Google Cloud Spanner C++ library, which facilitates the parsing of `Tuple` objects from a range of `RowStreamIterator` objects."],["Users typically interact with `TupleStream` instances through the `StreamOf\u003cT\u003e(range)` factory function, especially within range-based for loops, to handle data rows, as demonstrated in the example code snippet."],["The term \"stream\" in `TupleStream` refers to the data source's nature rather than any connection to C++'s I/O stream library, and it defines a range using `TupleStreamIterator` objects."],["The page lists different versions of the documentation, with the latest version being 2.37.0-rc, along with other versions ranging down to 2.11.0."],["`TupleStream` class provides `begin()` and `end()` functions that returns an iterator object, and also has a `iterator` type alias that is `TupleStreamIterator\u003c Tuple \u003e`."]]],[]]