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 page provides documentation for the `TupleStream` class in the Google Cloud Spanner C++ library, detailing its functionality and usage across various versions."],["The `TupleStream` class is designed to parse `Tuple` objects from a given range of `RowStreamIterator` objects, offering a way to iterate through rows."],["The class is utilized through the `StreamOf\u003cT\u003e(range)` factory function, with a range-for loop being the common way to iterate over the `TupleStream`."],["The `begin()` and `end()` functions return an iterator allowing the user to manually manage the iteration, and `iterator` is an alias of `TupleStreamIterator\u003c Tuple \u003e`."],["The documentation lists available versions of the library, from the latest release candidate 2.37.0-rc down to version 2.11.0, with version 2.14.0 highlighted due to its associated documentation."]]],[]]