Template Struct tuple_element¶
Defined in File pair.h
Struct Documentation¶
-
template<int
N
, classT
>
structtuple_element
¶ This convenience metafunction is included for compatibility with
tuple
. It returns either the type of apair's
first_type
orsecond_type
in its nested type,type
.This metafunction returns the type of a
tuple's
N
th element.- Template Parameters
N
: This parameter selects the member of interest.T
: Apair
type of interest.
- See
- See
- Template Parameters
N
: This parameter selects the element of interest.T
: Atuple
type of interest.
Public Types
-
typedef tuple_element<N - 1, Next>::type
type
¶ The result of this metafunction is returned in
type
.