Template Struct tuple_size

Struct Documentation

template<class T>
struct tuple_size

This convenience metafunction is included for compatibility with tuple. It returns 2, the number of elements of a pair, in its nested data member, value.

This metafunction returns the number of elements of a

tuple type of interest.
Template Parameters
  • Pair: A pair type of interest.

See

pair

See

tuple

Template Parameters
  • T: A tuple type of interest.

Public Static Attributes

const int value = 1 + tuple_size<typename T::tail_type>::value

The result of this metafunction is returned in value.