Back to Arangodb

set_c

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

3.12.9.13.4 KB
Original Source

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

set_c

Description

set_c is an Integral Sequence Wrapper for set. As such, it shares all set characteristics and requirements, and differs only in the way the original sequence content is specified.

Sequence formHeader
Variadic#include <boost/mpl/set_c.hpp>
Numbered#include <boost/mpl/set/set_n__c.hpp>

Model of

Expression semantics

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

ExpressionSemantics
[set\_c](./set-c.html)<T,_c_1,_c_2,..._c_n>[set](./set.html)_n__c<T,_c_1,_c_2,..._c_n>

| A set of integral constant wrappers integral_c<T,_c_1>, integral_c<T,_c_2>, ... integral_c<T,_c_n>; see Integral Sequence Wrapper. | |

[set\_c](./set-c.html)<T,_c_1,_c_2,..._c_n>::type[set](./set.html)_n__c<T,_c_1,_c_2,..._c_n>::type

| Identical to setn<integral_c<T,_c_1>, integral_c<T,_c_2>, ... integral_c<T,_c_n> >; see Integral Sequence Wrapper. | |

[set\_c](./set-c.html)<T,_c_1,_c_2,..._c_n>::[value\_type](./value-type.html)[set](./set.html)_n__c<T,_c_1,_c_2,..._c_n>::[value\_type](./value-type.html)

| Identical to T; see Integral Sequence Wrapper. |

Example

typedef[set\_c](./set-c.html)< int,1,3,5,7,9 > odds;[BOOST\_MPL\_ASSERT\_RELATION](./assert-relation.html)([size](./size.html)<odds>::value, ==, 5 );[BOOST\_MPL\_ASSERT\_NOT](./assert-not.html)(([empty](./empty.html)<odds> ));[BOOST\_MPL\_ASSERT](./assert.html)(([has\_key](./has-key.html)< odds,[integral\_c](./integral-c.html)<int,5> > ));[BOOST\_MPL\_ASSERT\_NOT](./assert-not.html)(([has\_key](./has-key.html)< odds,[integral\_c](./integral-c.html)<int,4> > ));[BOOST\_MPL\_ASSERT\_NOT](./assert-not.html)(([has\_key](./has-key.html)< odds,[integral\_c](./integral-c.html)<int,15> > ));

See also

Sequences, Integral Sequence Wrapper, set, integral_c, vector_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) |