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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-22 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eTupleStream\u003c/code\u003e class in the Google Cloud Spanner C++ library, detailing its functionality and usage across various versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTupleStream\u003c/code\u003e class is designed to parse \u003ccode\u003eTuple\u003c/code\u003e objects from a given range of \u003ccode\u003eRowStreamIterator\u003c/code\u003es, acting as a range defined by two \u003ccode\u003eTupleStreamIterator\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eUsers can create \u003ccode\u003eTupleStream\u003c/code\u003e instances using the \u003ccode\u003eStreamOf<T>(range)\u003c/code\u003e factory function and typically use them within range-for loops to handle data.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage also gives access to documentation for older versions of the documentation, ranging from 2.11.0 to 2.37.0-rc, and includes a section for version 2.28.0.\u003c/p\u003e\n"],["\u003cp\u003eThe term "stream" in \u003ccode\u003eTupleStream\u003c/code\u003e refers to the nature of the data source, not C++'s I/O streams.\u003c/p\u003e\n"]]],[],null,[]]