Compartilhar via


<tuple>

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

#include <tuple>

Classes

tuple Class

Wraps a fixed-length sequence of elements.

tuple_element Class <tuple>

Wraps the type of a tuple element.

tuple_size Class <tuple>

Wraps tuple element count.

Operators

operator== <tuple>

Comparison of tuple objects, equal

operator!= <tuple>

Comparison of tuple objects, not equal

operator< <tuple>

Comparison of tuple objects, less than

operator<= <tuple>

Comparison of tuple objects, less than or equal

operator> <tuple>

Comparison of tuple objects, greater than

operator>= <tuple>

Comparison of tuple objects, greater than or equal

Functions

get Function <tuple>

Gets an element from a tuple object.

make_tuple Function

Makes a tuple from element values.

tie Function

Makes a tuple from element references.

See Also

Reference

<array>