.. Sequences/Classes//vector_c |70 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. Header ------ +-------------------+-----------------------------------------------------------+ | Sequence form | Header | +===================+===========================================================+ | Variadic | ``#include `` | +-------------------+-----------------------------------------------------------+ | Numbered | ``#include `` | +-------------------+-----------------------------------------------------------+ Model of -------- * |Integral Sequence Wrapper| * |Variadic Sequence| * |Random Access Sequence| * |Extensible Sequence| * |Back Extensible Sequence| * |Front Extensible Sequence| Expression semantics -------------------- |Semantics disclaimer...| |vector|. .. workaround substitution bug (should be replace:: vector\ *n*\ _c) .. |vectorn_c| replace:: vector\ *n*\ _c +-------------------------------------------+-----------------------------------------------+ | Expression | Semantics | +===========================================+===============================================+ | .. parsed-literal:: | A |vector| of integral constant wrappers | | | ``integral_c``, | | vector_c | ``integral_c``, ... | | |vectorn_c| | ``integral_c``; | | | see |Integral Sequence Wrapper|. | +-------------------------------------------+-----------------------------------------------+ | .. parsed-literal:: | Identical to ``vector``\ *n*\ ``<`` | | | ``integral_c``, | | vector_c::type | ``integral_c``, ... | | |vectorn_c|::type | ``integral_c`` ``>``; | | | see |Integral Sequence Wrapper|. | +-------------------------------------------+-----------------------------------------------+ | .. parsed-literal:: | Identical to ``T``; see | | | |Integral Sequence Wrapper|. | | vector_c::value_type | | | |vectorn_c|::value_type | | +-------------------------------------------+-----------------------------------------------+ Example ------- .. parsed-literal:: typedef vector_c fibonacci; typedef push_back >::type fibonacci2; BOOST_MPL_ASSERT_RELATION( front::type::value, ==, 1 ); BOOST_MPL_ASSERT_RELATION( back::type::value, ==, 55 ); See also -------- |Sequences|, |Integral Sequence Wrapper|, |vector|, |integral_c|, |set_c|, |list_c|, |range_c| .. copyright:: 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)