]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/mpl/doc/refmanual/limit-map-size.html
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / mpl / doc / refmanual / limit-map-size.html
1 <?xml version="1.0" encoding="utf-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Docutils 0.7: http://docutils.sourceforge.net/" />
7 <title>The MPL Reference Manual: BOOST_MPL_LIMIT_MAP_SIZE</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body class="docframe refmanual">
11 <table class="header"><tr class="header"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./limit-set-size.html" class="navigation-link">Prev</a>&nbsp;<a href="./limit-string-size.html" class="navigation-link">Next</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./limit-set-size.html" class="navigation-link">Back</a>&nbsp;<a href="./limit-string-size.html" class="navigation-link">Along</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./configuration.html" class="navigation-link">Up</a>&nbsp;<a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td>
12 <td class="header-group page-location"><a href="../refmanual.html" class="navigation-link">Front Page</a> / <a href="./macros.html" class="navigation-link">Macros</a> / <a href="./configuration.html" class="navigation-link">Configuration</a> / <a href="./limit-map-size.html" class="navigation-link">BOOST_MPL_LIMIT_MAP_SIZE</a></td>
13 </tr></table><div class="header-separator"></div>
14 <div class="section" id="boost-mpl-limit-map-size">
15 <h1><a class="toc-backref" href="./configuration.html#id1605">BOOST_MPL_LIMIT_MAP_SIZE</a></h1>
16 <div class="section" id="id1371">
17 <h3><a class="subsection-title" href="#synopsis" name="synopsis">Synopsis</a></h3>
18 <pre class="literal-block">
19 #if !defined(<a href="./limit-map-size.html" class="identifier">BOOST_MPL_LIMIT_MAP_SIZE</a>)
20 # define <a href="./limit-map-size.html" class="identifier">BOOST_MPL_LIMIT_MAP_SIZE</a> \
21 <em>implementation-defined integral constant</em> \
22 /**/
23 #endif
24 </pre>
25 </div>
26 <div class="section" id="id1372">
27 <h3><a class="subsection-title" href="#description" name="description">Description</a></h3>
28 <p><tt class="literal"><span class="pre"><a href="./limit-map-size.html" class="identifier">BOOST_MPL_LIMIT_MAP_SIZE</a></span></tt> is an overridable configuration macro regulating
29 the maximum arity of the <tt class="literal"><span class="pre"><a href="./map.html" class="identifier">map</a></span></tt>'s <a class="reference internal" href="./variadic-sequence.html">variadic form</a>. In this
30 implementation of the library, <tt class="literal"><span class="pre"><a href="./limit-map-size.html" class="identifier">BOOST_MPL_LIMIT_MAP_SIZE</a></span></tt> has a default value
31 of 20. To override the default limit, define <tt class="literal"><span class="pre"><a href="./limit-map-size.html" class="identifier">BOOST_MPL_LIMIT_MAP_SIZE</a></span></tt> to
32 the desired maximum arity rounded up to the nearest multiple of ten before
33 including any library header. [<em>Note:</em> Overriding will take effect
34 <em>only</em> if the library is configured not to use <a class="reference internal" href="./cfg-no-preprocessed-headers.html#boost-mpl-cfg-no-preprocessed">preprocessed headers</a>. See
35 <a class="reference internal" href="./cfg-no-preprocessed-headers.html">BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS</a> for more information. — <em>end note</em>]</p>
36 </div>
37 <div class="section" id="id1374">
38 <h3><a class="subsection-title" href="#example" name="example">Example</a></h3>
39 <pre class="literal-block">
40 #define <a href="./cfg-no-preprocessed-headers.html" class="identifier">BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS</a>
41 #define <a href="./limit-map-size.html" class="identifier">BOOST_MPL_LIMIT_MAP_SIZE</a> 10
42 <tt class="literal"><span class="pre">#</span></tt>include &lt;boost/mpl/<a href="./map.html" class="identifier">map</a>.hpp&gt;
43 <tt class="literal"><span class="pre">#</span></tt>include &lt;boost/mpl/<a href="./pair.html" class="identifier">pair</a>.hpp&gt;
44 <tt class="literal"><span class="pre">#</span></tt>include &lt;boost/mpl/int.hpp&gt;
45
46 using namespace boost::mpl;
47
48 template&lt; int i &gt; struct ints : <a href="./pair.html" class="identifier">pair</a>&lt; <a href="./int.html" class="identifier">int_</a>&lt;i&gt;,<a href="./int.html" class="identifier">int_</a>&lt;i&gt; &gt; {};
49
50 typedef <a href="./map.html" class="identifier">map</a>&lt; ints&lt;1&gt; &gt; m_1;
51 typedef <a href="./map.html" class="identifier">map</a>&lt; ints&lt;1&gt;, ints&lt;2&gt;, ints&lt;3&gt;, ints&lt;4&gt;, ints&lt;5&gt;
52 ints&lt;6&gt;, ints&lt;7&gt;, ints&lt;8&gt;, ints&lt;9&gt;, ints&lt;10&gt; &gt; m_10;
53
54 // typedef <a href="./map.html" class="identifier">map</a>&lt; ints&lt;1&gt;, ints&lt;2&gt;, ints&lt;3&gt;, ints&lt;4&gt;, ints&lt;5&gt;
55 // ints&lt;6&gt;, ints&lt;7&gt;, ints&lt;8&gt;, ints&lt;9&gt;, ints&lt;10&gt;, ints&lt;11&gt; &gt; m_11; // error!
56 </pre>
57 </div>
58 <div class="section" id="id1375">
59 <h3><a class="subsection-title" href="#see-also" name="see-also">See also</a></h3>
60 <p><a class="reference internal" href="./configuration.html">Configuration</a>, <a class="reference internal" href="./cfg-no-preprocessed-headers.html">BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS</a>, <a class="reference internal" href="./limit-set-size.html">BOOST_MPL_LIMIT_SET_SIZE</a></p>
61 <!-- Macros/Configuration//BOOST_MPL_LIMIT_STRING_SIZE |65 -->
62 </div>
63 </div>
64
65 <div class="footer-separator"></div>
66 <table class="footer"><tr class="footer"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./limit-set-size.html" class="navigation-link">Prev</a>&nbsp;<a href="./limit-string-size.html" class="navigation-link">Next</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./limit-set-size.html" class="navigation-link">Back</a>&nbsp;<a href="./limit-string-size.html" class="navigation-link">Along</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./configuration.html" class="navigation-link">Up</a>&nbsp;<a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator">&nbsp;|&nbsp;</span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td>
67 <td><div class="copyright-footer"><div class="copyright">Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams</div>
68 Distributed under the Boost Software License, Version 1.0. (See accompanying
69 file LICENSE_1_0.txt or copy at <a class="reference external" href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</div></td></tr></table></body>
70 </html>