...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 <boost/mpl/vector/vectorn_c.hpp> |

The semantics of an expression are defined only where they differ from, or are not defined in vector.

Expression | Semantics |
---|---|

vector_c<T, |
A vector of integral constant wrappers
integral_c<T,c_{1}>,
integral_c<T,c_{2}>, ...
integral_c<T,c_{n}>;
see Integral Sequence Wrapper. |

vector_c<T, |
Identical to vectorn<
integral_c<T,c_{1}>,
integral_c<T,c_{2}>, ...
integral_c<T,c_{n}> >;
see Integral Sequence Wrapper. |

vector_c<T, |
Identical to T; see
Integral Sequence Wrapper. |

typedef vector_c<int,1,1,2,3,5,8,13,21,34> fibonacci; typedef push_back<fibonacci,int_<55> >::type fibonacci2; BOOST_MPL_ASSERT_RELATION( front<fibonacci2>::type::value, ==, 1 ); BOOST_MPL_ASSERT_RELATION( back<fibonacci2>::type::value, ==, 55 );