⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 limit_list_size.rst

📁 C++的一个好库。。。现在很流行
💻 RST
字号:
.. Macros/Configuration//BOOST_MPL_LIMIT_LIST_SIZE |40

BOOST_MPL_LIMIT_LIST_SIZE
=========================

Synopsis
--------

.. parsed-literal::

    #if !defined(BOOST_MPL_LIMIT_LIST_SIZE)
    #   define BOOST_MPL_LIMIT_LIST_SIZE \\
            |idic| \\
    /\*\*/
    #endif


Description
-----------

``BOOST_MPL_LIMIT_LIST_SIZE`` is an overridable configuration macro regulating
the maximum arity of the ``list``\ 's and ``list_c``\ 's |variadic forms|. In this 
implementation of the library, ``BOOST_MPL_LIMIT_LIST_SIZE`` has a default value
of 20. To override the default limit, define ``BOOST_MPL_LIMIT_LIST_SIZE`` to
the 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_LIST_SIZE 10
    ``#``\ include <boost/mpl/list.hpp>
    
    using namespace boost::mpl;

    typedef list_c<int,1> l_1;
    typedef list_c<int,1,2,3,4,5,6,7,8,9,10> l_10;
    // typedef list_c<int,1,2,3,4,5,6,7,8,9,10,11> l_11; // error!


See also
--------

|Configuration|, |BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS|, |BOOST_MPL_LIMIT_VECTOR_SIZE|

⌨️ 快捷键说明

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