Boost:Tuple
lastmod 2026-11-10created 2015-06-132 edits
Boost.Tuple is a Boost library that bundles several values of different types into a single object, and is the predecessor of C++11 std::tuple. You declare a boost::tuple with a list of types, access elements with the get function, and unpack it into several variables at once with boost::tie. It is convenient when returning multiple values from a function, since you don't need to define a separate struct.