3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/vector-c.html
| Prev Next | Back Along | Up Home | Full TOC | 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/vector_n__c.hpp> |
The semantics of an expression are defined only where they differ from, or are not defined in vector.
| Expression | Semantics |
|---|---|
[vector\_c](./vector-c.html)<T,_c_1,_c_2,..._c_n>[vector](./vector.html)_n__c<T,_c_1,_c_2,..._c_n>
| 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](./vector-c.html)<T,_c_1,_c_2,..._c_n>::type[vector](./vector.html)_n__c<T,_c_1,_c_2,..._c_n>::type
| Identical to vectorn<integral_c<T,_c_1>, integral_c<T,_c_2>, ... integral_c<T,_c_n> >; see Integral Sequence Wrapper. | |
[vector\_c](./vector-c.html)<T,_c_1,_c_2,..._c_n>::[value\_type](./value-type.html)[vector](./vector.html)_n__c<T,_c_1,_c_2,..._c_n>::[value\_type](./value-type.html)
| Identical to T; see Integral Sequence Wrapper. |
typedef[vector\_c](./vector-c.html)<int,1,1,2,3,5,8,13,21,34> fibonacci;
typedef[push\_back](./push-back.html)<fibonacci,[int\_](./int.html)<55> >::type fibonacci2;[BOOST\_MPL\_ASSERT\_RELATION](./assert-relation.html)([front](./front.html)<fibonacci2>::type::value, ==, 1 );[BOOST\_MPL\_ASSERT\_RELATION](./assert-relation.html)([back](./back.html)<fibonacci2>::type::value, ==, 55 );
Sequences, Integral Sequence Wrapper, vector, integral_c, set_c, list_c, range_c
| Prev Next | Back Along | Up Home | Full TOC |
Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |