Improve vacpp support.
[boost.git] / boost / libs / mpl / doc / src / refmanual / LIMIT_VECTOR_SIZE.rst
blobd0d728ee828a50cb6f31b5ab07457db249fcfd16
1 .. Macros/Configuration//BOOST_MPL_LIMIT_VECTOR_SIZE |30
3 BOOST_MPL_LIMIT_VECTOR_SIZE
4 ===========================
6 Synopsis
7 --------
9 .. parsed-literal::
11     #if !defined(BOOST_MPL_LIMIT_VECTOR_SIZE)
12     #   define BOOST_MPL_LIMIT_VECTOR_SIZE \\
13             |idic| \\
14     /\*\*/
15     #endif
18 Description
19 -----------
21 ``BOOST_MPL_LIMIT_VECTOR_SIZE`` is an overridable configuration macro regulating
22 the maximum arity of the ``vector``\ 's and ``vector_c``\ 's |variadic forms|. In this 
23 implementation of the library, ``BOOST_MPL_LIMIT_VECTOR_SIZE`` has a default value
24 of 20. To override the default limit, define ``BOOST_MPL_LIMIT_VECTOR_SIZE`` to
25 the desired maximum arity rounded up to the nearest multiple of ten before 
26 including any library header. |preprocessed headers disclaimer|
29 Example
30 -------
32 .. parsed-literal::
34     #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
35     #define BOOST_MPL_LIMIT_VECTOR_SIZE 10
36     ``#``\ include <boost/mpl/vector.hpp>
37     
38     using namespace boost::mpl;
40     typedef vector_c<int,1> v_1;
41     typedef vector_c<int,1,2,3,4,5,6,7,8,9,10> v_10;
42     // typedef vector_c<int,1,2,3,4,5,6,7,8,9,10,11> v_11; // error!
45 See also
46 --------
48 |Configuration|, |BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS|, |BOOST_MPL_LIMIT_LIST_SIZE|