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-14 UTC."],[[["This webpage provides documentation for the `TupleStream` class in the Google Cloud Spanner C++ library, detailing its functionality and usage across various versions."],["The latest version available is `2.37.0-rc`, while the current version of the documentation in view is `2.15.1`, which has links to all the versions in between."],["`TupleStream` defines a range that parses `Tuple` objects from a range of `RowStreamIterator`s, allowing users to iterate through rows in a range-for loop, as demonstrated by the provided code example."],["The class is considered a \"range\" defined by `TupleStreamIterator` objects, despite the use of \"stream\" in its name, which is not related to C++'s I/O streams library."],["The documentation includes details on the `begin()` and `end()` functions, as well as a type alias `iterator` that refers to `TupleStreamIterator\u003cTuple\u003e`."]]],[]]