![]() |
Home | Libraries | People | FAQ | More |
Returns the actual type at a given index from the Sequence.
template< typename Seq, typename N> struct value_at { typedef unspecified type; };
| Parameter | Requirement | Description |
|---|---|---|
| Seq | A model of Forward Sequence | Argument sequence |
| N | An MPL Integral Constant | Index of element |
result_of::value_at<Seq, N>::type
Return type: Any type.
Semantics: Returns the actual type at the Nth element of Seq.
#include <boost/fusion/sequence/intrinsic/value_at.hpp>
typedef vector<int,float,char> vec; BOOST_MPL_ASSERT((boost::is_same<result_of::value_at<vec, boost::mpl::int_<1> >::type, float>));
| Copyright © 2001-2005 Joel de Guzman, Dan Marsden |