|  | Home | Libraries | People | FAQ | More | 
            Returns the result type of size.
          
template<typename Seq> struct size { typedef unspecified type; };
Table 1.27. Parameters
| Parameter | Requirement | Description | 
|---|---|---|
| 
                       | A model of Forward Sequence | Argument sequence | 
result_of::size<Seq>::type
Return type: An MPL Integral Constant.
            Semantics: Returns the number of elements
            in Seq.
          
#include <boost/fusion/sequence/intrinsic/size.hpp> #include <boost/fusion/include/size.hpp>
typedefvector<int,float,char> vec; typedefresult_of::size<vec>::type size_mpl_integral_constant; BOOST_MPL_ASSERT_RELATION(size_mpl_integral_constant::value, ==, 3);