...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Front Page / Sequences / Classes / vector_c |
vector_c is an Integral Sequence Wrapper for vector. As such, it shares all vector characteristics and requirements, and differs only in the way the original sequence content is specified.
Sequence form | Header |
---|---|
Variadic | #include <boost/mpl/vector_c.hpp> |
Numbered | #include |
The semantics of an expression are defined only where they differ from, or are not defined in vector.
Expression | Semantics |
---|---|
vector_c |
A vector of integral constant wrappers
integral_c |
vector_c |
Identical to vectorn<
integral_c |
vector_c |
Identical to T; see Integral Sequence Wrapper. |
typedef vector_cfibonacci; typedef push_back int_<55> >::type fibonacci2; BOOST_MPL_ASSERT_RELATION( front ::type::value, ==, 1 ); BOOST_MPL_ASSERT_RELATION( back ::type::value, ==, 55 );