Back to Arangodb

vector_c

3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/vector-c.html

3.12.9.13.5 KB
Original Source

| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Classes / vector_c |

vector_c

Description

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 formHeader
Variadic#include <boost/mpl/vector_c.hpp>
Numbered#include <boost/mpl/vector/vector_n__c.hpp>

Model of

Expression semantics

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

ExpressionSemantics
[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. |

Example

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 );

See also

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) |