.. Sequences/Classes//set_c |90 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. Header ------ +-------------------+-------------------------------------------------------+ | Sequence form | Header | +===================+=======================================================+ | Variadic | ``#include `` | +-------------------+-------------------------------------------------------+ | Numbered | ``#include `` | +-------------------+-------------------------------------------------------+ Model of -------- * |Variadic Sequence| * |Associative Sequence| * |Extensible Associative Sequence| Expression semantics -------------------- |Semantics disclaimer...| |set|. .. workaround substitution bug (should be replace:: set\ *n*\ _c) .. |setn_c| replace:: set\ *n*\ _c +---------------------------------------+-----------------------------------------------+ | Expression | Semantics | +=======================================+===============================================+ | .. parsed-literal:: | A |set| of integral constant wrappers | | | ``integral_c``, | | set_c | ``integral_c``, ... | | |setn_c| | ``integral_c``; | | | see |Integral Sequence Wrapper|. | +---------------------------------------+-----------------------------------------------+ | .. parsed-literal:: | Identical to ``set``\ *n*\ ``<`` | | | ``integral_c``, | | set_c::type | ``integral_c``, ... | | |setn_c|::type | ``integral_c`` ``>``; | | | see |Integral Sequence Wrapper|. | +---------------------------------------+-----------------------------------------------+ | .. parsed-literal:: | Identical to ``T``; see | | | |Integral Sequence Wrapper|. | | set_c::value_type | | | |setn_c|::value_type | | +---------------------------------------+-----------------------------------------------+ Example ------- .. parsed-literal:: typedef set_c< int,1,3,5,7,9 > odds; BOOST_MPL_ASSERT_RELATION( size::value, ==, 5 ); BOOST_MPL_ASSERT_NOT(( empty )); BOOST_MPL_ASSERT(( has_key< odds, integral_c > )); BOOST_MPL_ASSERT_NOT(( has_key< odds, integral_c > )); BOOST_MPL_ASSERT_NOT(( has_key< odds, integral_c > )); See also -------- |Sequences|, |Integral Sequence Wrapper|, |set|, |integral_c|, |vector_c|, |list_c|, |range_c|