]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mpl/doc/src/refmanual/LIMIT_STRING_SIZE.rst
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / mpl / doc / src / refmanual / LIMIT_STRING_SIZE.rst
1 .. Macros/Configuration//BOOST_MPL_LIMIT_STRING_SIZE |65
2
3 BOOST_MPL_LIMIT_STRING_SIZE
4 ===========================
5
6 Synopsis
7 --------
8
9 .. parsed-literal::
10
11 #if !defined(BOOST_MPL_LIMIT_STRING_SIZE)
12 # define BOOST_MPL_LIMIT_STRING_SIZE \\
13 |idic| \\
14 /\*\*/
15 #endif
16
17
18 Description
19 -----------
20
21 ``BOOST_MPL_LIMIT_STRING_SIZE`` is an overridable configuration macro regulating
22 the maximum arity of the ``string``\ 's |variadic forms|. In this
23 implementation of the library, ``BOOST_MPL_LIMIT_STRING_SIZE`` has a default value
24 of 32. To override the default limit, define ``BOOST_MPL_LIMIT_STRING_SIZE`` to
25 the desired maximum arity before including any library header.
26
27
28 Example
29 -------
30
31 .. parsed-literal::
32
33 #define BOOST_MPL_LIMIT_STRING_SIZE 8
34 ``#``\ include <boost/mpl/string.hpp>
35
36 using namespace boost::mpl;
37
38 typedef string<'a'> s_1;
39 typedef string<'abcd','efgh'> s_8;
40 // typedef string<'abcd','efgh','i'> s_9; // error!
41
42
43 See also
44 --------
45
46 |Configuration|, |BOOST_MPL_LIMIT_VECTOR_SIZE|
47
48
49 .. copyright:: Copyright © 2009 Eric Niebler
50 Distributed under the Boost Software License, Version 1.0. (See accompanying
51 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)