limit_set_size.rst

来自「Boost provides free peer-reviewed portab」· RST 代码 · 共 54 行

RST
54
字号
.. Macros/Configuration//BOOST_MPL_LIMIT_SET_SIZE |50.. Copyright Aleksey Gurtovoy, David Abrahams 2007... 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)BOOST_MPL_LIMIT_SET_SIZE========================Synopsis--------.. parsed-literal::    #if !defined(BOOST_MPL_LIMIT_SET_SIZE)    #   define BOOST_MPL_LIMIT_SET_SIZE \\            |idic| \\    /\*\*/    #endifDescription-----------``BOOST_MPL_LIMIT_SET_SIZE`` is an overridable configuration macro regulatingthe maximum arity of the ``set``\ 's and ``set_c``\ 's |variadic forms|. In this implementation of the library, ``BOOST_MPL_LIMIT_SET_SIZE`` has a default valueof 20. To override the default limit, define ``BOOST_MPL_LIMIT_SET_SIZE`` tothe desired maximum arity rounded up to the nearest multiple of ten before including any library header. |preprocessed headers disclaimer|Example-------.. parsed-literal::    #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS    #define BOOST_MPL_LIMIT_SET_SIZE 10    ``#``\ include <boost/mpl/set.hpp>        using namespace boost::mpl;    typedef set_c<int,1> s_1;    typedef set_c<int,1,2,3,4,5,6,7,8,9,10> s_10;    // typedef set_c<int,1,2,3,4,5,6,7,8,9,10,11> s_11; // error!See also--------|Configuration|, |BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS|, |BOOST_MPL_LIMIT_MAP_SIZE|

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?