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\u003eThe webpage provides documentation for the \u003ccode\u003eTupleStream\u003c/code\u003e class in the Google Cloud Spanner C++ library, detailing its functionality for parsing \u003ccode\u003eTuple\u003c/code\u003e objects from a range of \u003ccode\u003eRowStreamIterator\u003c/code\u003es.\u003c/p\u003e\n"],["\u003cp\u003eThe 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 the respective documentation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTupleStream\u003c/code\u003e is designed to work within a range-based for loop, simplifying the handling of data extraction and error management with a row-by-row iterator.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTupleStream\u003c/code\u003e is a range defined by two \u003ccode\u003eTupleStreamIterator\u003c/code\u003e objects and is not related to the C++ I/O streams library.\u003c/p\u003e\n"],["\u003cp\u003eThe page also defines type aliases, specifically \u003ccode\u003eiterator\u003c/code\u003e, which is an alias for \u003ccode\u003eTupleStreamIterator<Tuple>\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]