Template Struct tuple_element

Struct Documentation

template<int N, class T>
struct tuple_element

This convenience metafunction is included for compatibility with tuple. It returns either the type of a pair's first_type or second_type in its nested type, type.

This metafunction returns the type of a

tuple's Nth element.
Template Parameters
  • N: This parameter selects the member of interest.

  • T: A pair type of interest.

See

pair

See

tuple

Template Parameters
  • N: This parameter selects the element of interest.

  • T: A tuple type of interest.

Public Types

typedef tuple_element<N - 1, Next>::type type

The result of this metafunction is returned in type.