Freigeben über


<tuple>

 

The latest version of this topic can be found at <tuple>.

Defines a template tuple whose instances hold objects of varying types.

Syntax

#include <tuple>  

Classes

tuple Wraps a fixed-length sequence of elements.
tuple_element Class Wraps the type of a tuple element.
tuple_size Class Wraps tuple element count.

Operators

operator== Comparison of tuple objects, equal
operator!= Comparison of tuple objects, not equal
operator< Comparison of tuple objects, less than
operator<= Comparison of tuple objects, less than or equal
operator> Comparison of tuple objects, greater than
operator>= Comparison of tuple objects, greater than or equal

Functions

get Gets an element from a tuple object.
make_tuple Makes a tuple from element values.
tie Makes a tuple from element references.

See Also

<array>