3rdParty/boost/1.78.0/libs/mpl/doc/refmanual/set-c.html
| Prev Next | Back Along | Up Home | Full TOC | Front Page / Sequences / Classes / set_c |
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 form | Header |
|---|---|
| Variadic | #include <boost/mpl/set_c.hpp> |
| Numbered | #include <boost/mpl/set/set_n__c.hpp> |
The semantics of an expression are defined only where they differ from, or are not defined in set.
| Expression | Semantics |
|---|---|
[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. |
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> > ));
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) |