C++ Library - <tuple>



Introduction

These are objects that pack elements of -possibly- different types together in a single object, just like pair objects do for pairs of elements, but generalized for any number of elements. It is closely related to the pair class (defined in header ): Tuples can be constructed from pairs, and pairs can be treated as tuples for certain purposes.

Helper classes

Sr.No.Helper classe & description
1tuple_size

It contains the information about tuple size.

2tuple_element

It contains the information about tuple element type.

Member functions

Sr.No.Member function & description
1(constructor)

It is a construct tuple.

2tuple::operator=

It is a tuple operator.

3tuple::swap

It swaps content.

Object creation

Sr.No.Object creation & description
1make_tuple

It constructs tuple.

2forward_as_tuple

It forward as tuple.

3tie

It contains tie arguments.

4tuple_cat

It concatenate tuples.

Element access

Sr.No.Element access & description
1get

It is used to get element.

Non-member function

Sr.No.Non-member function overload & description
1relational operators (tuple)

It contains relational operators for tuple.

Objects

Sr.No.Object & description
1ignore

It ignores assignment.

Advertisements
close