]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/mpl/doc/src/refmanual/LIMIT_LIST_SIZE.rst
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / mpl / doc / src / refmanual / LIMIT_LIST_SIZE.rst
CommitLineData
7c673cae
FG
1.. Macros/Configuration//BOOST_MPL_LIMIT_LIST_SIZE |40
2
3BOOST_MPL_LIMIT_LIST_SIZE
4=========================
5
6Synopsis
7--------
8
9.. parsed-literal::
10
11 #if !defined(BOOST_MPL_LIMIT_LIST_SIZE)
12 # define BOOST_MPL_LIMIT_LIST_SIZE \\
13 |idic| \\
14 /\*\*/
15 #endif
16
17
18Description
19-----------
20
21``BOOST_MPL_LIMIT_LIST_SIZE`` is an overridable configuration macro regulating
22the maximum arity of the ``list``\ 's and ``list_c``\ 's |variadic forms|. In this
23implementation of the library, ``BOOST_MPL_LIMIT_LIST_SIZE`` has a default value
24of 20. To override the default limit, define ``BOOST_MPL_LIMIT_LIST_SIZE`` to
25the desired maximum arity rounded up to the nearest multiple of ten before
26including any library header. |preprocessed headers disclaimer|
27
28
29Example
30-------
31
32.. parsed-literal::
33
34 #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
35 #define BOOST_MPL_LIMIT_LIST_SIZE 10
36 ``#``\ include <boost/mpl/list.hpp>
37
38 using namespace boost::mpl;
39
40 typedef list_c<int,1> l_1;
41 typedef list_c<int,1,2,3,4,5,6,7,8,9,10> l_10;
42 // typedef list_c<int,1,2,3,4,5,6,7,8,9,10,11> l_11; // error!
43
44
45See also
46--------
47
48|Configuration|, |BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS|, |BOOST_MPL_LIMIT_VECTOR_SIZE|
49
50
51