| Home | Libraries | People | FAQ | More

##### size

###### Description

Returns the result type of `size`.

###### Synopsis

    template<typename Seq>
    struct size
    {
        typedef unspecified type;
    };

Table 1.28. Parameters

Parameter | Requirement | Description
--- | --- | ---
`Seq` | A model of Forward Sequence | Argument sequence

###### Expression Semantics

    result_of::size<Seq>::type

Return type: An MPL Integral Constant.

Semantics: Returns the number of elements in `Seq`.

###### Header

    #include <boost/fusion/sequence/intrinsic/size.hpp>
    #include <boost/fusion/include/size.hpp>

###### Example

    typedef vector<int,float,char> vec;
    typedef result_of::size<vec>::type size_mpl_integral_constant;
    BOOST_MPL_ASSERT_RELATION(size_mpl_integral_constant::value, ==, 3);