<<<<<<< .working ======= >>>>>>> .merge-right.r57125
Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Tuple helper classes <<<<<<< .working

Description
=======
Description
>>>>>>> .merge-right.r57125

The TR1 Tuple provides 2 helper traits, for compile time access to the tuple size, and the element types.

<<<<<<< .working
Specification
=======
Specification
>>>>>>> .merge-right.r57125
tuple_size<T>::value

Requires: T is any fusion sequence type, including tuple.

Type: MPL Integral Constant

Value: The number of elements in the sequence. Equivalent to result_of::size<T>::type.

tuple_element<I, T>::type

Requires: T is any fusion sequence type, including tuple. 0 <= I < N or the program is ill formed.

Value: The type of the Ith element of T. Equivalent to result_of::value_at<I,T>::type.


PrevUpHomeNext