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 page provides documentation for the \u003ccode\u003eTupleStream\u003c/code\u003e class in the Google Cloud Spanner C++ library, which is currently on version 2.34.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTupleStream\u003c/code\u003e class is used to parse \u003ccode\u003eTuple\u003c/code\u003e objects from a range of \u003ccode\u003eRowStreamIterator\u003c/code\u003es.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate version is 2.37.0-rc, and the page lists all available versions starting from 2.37.0-rc down to 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003eUsers can create instances of \u003ccode\u003eTupleStream\u003c/code\u003e using the \u003ccode\u003eStreamOf<T>(range)\u003c/code\u003e factory function, typically used in range-based for loops.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTupleStream\u003c/code\u003e is a range defined by two iterator objects of type \u003ccode\u003eTupleStreamIterator\u003c/code\u003e, and it has \u003ccode\u003ebegin()\u003c/code\u003e and \u003ccode\u003eend()\u003c/code\u003e functions that return an iterator, where the iterator type alias is \u003ccode\u003eTupleStreamIterator<Tuple>\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]