forked from boostorg/preprocessor
dedicated counter
[SVN r30562]
This commit is contained in:
@ -189,6 +189,7 @@
|
||||
<li class="ps"><a href="headers/seq/transform.html">transform.hpp</a></li>
|
||||
<li><a href="headers/slot.html">slot.hpp</a></li>
|
||||
<li>slot/</li>
|
||||
<li class="ps"><a href="headers/slot/counter.html">counter.hpp</a></li>
|
||||
<li class="ps"><a href="headers/slot/slot.html">slot.hpp</a></li>
|
||||
<li><a href="headers/tuple.html">tuple.hpp</a></li>
|
||||
<li>tuple/</li>
|
||||
|
20
doc/headers/slot/counter.html
Normal file
20
doc/headers/slot/counter.html
Normal file
@ -0,0 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>slot/counter.hpp</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<div style="margin-left: 0px;">
|
||||
The <b>slot/counter.hpp</b> header defines macros used to generate numbers that are unique within a translation unit.
|
||||
</div>
|
||||
<h4>Usage</h4>
|
||||
<div class="code">
|
||||
#include <b><boost/preprocessor/slot/counter.hpp></b>
|
||||
</div>
|
||||
<h4>Contents</h4>
|
||||
<ul>
|
||||
<li><a href="../../ref/counter.html">BOOST_PP_COUNTER</a></li>
|
||||
<li><a href="../../ref/update_counter.html">BOOST_PP_UPDATE_COUNTER</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
@ -45,6 +45,7 @@
|
||||
<li><a href="ref/comma_if.html">COMMA_IF</a></li>
|
||||
<li><a href="ref/compl.html">COMPL</a></li>
|
||||
<li><a href="ref/config_extended_line_info.html">CONFIG_EXTENDED_LINE_INFO</a></li>
|
||||
<li><a href="ref/counter.html">COUNTER</a></li>
|
||||
<!-- D -->
|
||||
<li><a href="ref/dec.html">DEC</a></li>
|
||||
<li><a href="ref/deduce_d.html">DEDUCE_D</a></li>
|
||||
@ -261,6 +262,8 @@
|
||||
<li><a href="ref/tuple_reverse.html">TUPLE_REVERSE</a></li>
|
||||
<li><a href="ref/tuple_to_list.html">TUPLE_TO_LIST</a></li>
|
||||
<li><a href="ref/tuple_to_seq.html">TUPLE_TO_SEQ</a></li>
|
||||
<!-- U -->
|
||||
<li><a href="ref/update_counter.html">UPDATE_COUNTER</a></li>
|
||||
<!-- V -->
|
||||
<li><a href="ref/value.html">VALUE</a></li>
|
||||
<!-- W -->
|
||||
|
47
doc/ref/counter.html
Normal file
47
doc/ref/counter.html
Normal file
@ -0,0 +1,47 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>BOOST_PP_COUNTER</title>
|
||||
<link rel="stylesheet" type="text/css" href="../styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<div style="margin-left: 0px;">
|
||||
The <b>BOOST_PP_COUNTER</b> macro expands to the current counter value.
|
||||
</div>
|
||||
<h4>Usage</h4>
|
||||
<div class="code">
|
||||
<b>BOOST_PP_COUNTER</b>
|
||||
</div>
|
||||
<h4>Remarks</h4>
|
||||
<div>
|
||||
This macro expands to an integer literal.
|
||||
Its initial value is <code>0</code>.
|
||||
Between usages of <b>BOOST_PP_UPDATE_COUNTER</b>, the value of <b>BOOST_PP_COUNTER</b> is constant.
|
||||
</div>
|
||||
<h4>See Also</h4>
|
||||
<ul>
|
||||
<li><a href="update_counter.html">BOOST_PP_UPDATE_COUNTER</a></li>
|
||||
</ul>
|
||||
<h4>Requirements</h4>
|
||||
<div>
|
||||
<b>Header:</b> <a href="../headers/slot/counter.html"><boost/preprocessor/slot/counter.hpp></a>
|
||||
</div>
|
||||
<h4>Sample Code</h4>
|
||||
<div><pre>
|
||||
#include <<a href="../headers/array/insert.html">boost/preprocessor/slot/counter.hpp</a>>
|
||||
|
||||
<a href="counter.html">BOOST_PP_COUNTER</a> // 0
|
||||
|
||||
#include <a href="update_counter.html">BOOST_PP_UPDATE_COUNTER</a>()
|
||||
|
||||
<a href="counter.html">BOOST_PP_COUNTER</a> // 1
|
||||
|
||||
#include <a href="update_counter.html">BOOST_PP_UPDATE_COUNTER</a>()
|
||||
|
||||
<a href="counter.html">BOOST_PP_COUNTER</a> // 2
|
||||
|
||||
#include <a href="update_counter.html">BOOST_PP_UPDATE_COUNTER</a>()
|
||||
|
||||
<a href="counter.html">BOOST_PP_COUNTER</a> // 3
|
||||
</pre></div>
|
||||
</body>
|
||||
</html>
|
23
doc/ref/update_counter.html
Normal file
23
doc/ref/update_counter.html
Normal file
@ -0,0 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>BOOST_PP_UPDATE_COUNTER</title>
|
||||
<link rel="stylesheet" type="text/css" href="../styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<div style="margin-left: 0px;">
|
||||
The <b>BOOST_PP_UPDATE_COUNTER</b> macro increments the current counter value.
|
||||
</div>
|
||||
<h4>Usage</h4>
|
||||
<div class="code">
|
||||
#include <b>BOOST_PP_UPDATE_COUNTER()</b>
|
||||
</div>
|
||||
<h4>See Also</h4>
|
||||
<ul>
|
||||
<li><a href="counter.html">BOOST_PP_COUNTER</a></li>
|
||||
</ul>
|
||||
<h4>Requirements</h4>
|
||||
<div>
|
||||
<b>Header:</b> <a href="../headers/slot/counter.html"><boost/preprocessor/slot/counter.hpp></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -42,6 +42,7 @@
|
||||
<br>BOOST_PP_COMMA_IF
|
||||
<br>BOOST_PP_COMPL
|
||||
<br>BOOST_PP_CONFIG_EXTENDED_LINE_INFO
|
||||
<br>BOOST_PP_COUNTER
|
||||
<!-- D -->
|
||||
<br>BOOST_PP_DEC
|
||||
<br>BOOST_PP_DEDUCE_D
|
||||
@ -59,6 +60,8 @@
|
||||
<br>BOOST_PP_ENUM_PARAMS_WITH_DEFAULTS
|
||||
<br>BOOST_PP_ENUM_PARAMS_Z
|
||||
<br>BOOST_PP_ENUM_SHIFTED
|
||||
<br>BOOST_PP_ENUM_SHIFTED_BINARY_PARAMS
|
||||
<br>BOOST_PP_ENUM_SHIFTED_BINARY_PARAMS_Z
|
||||
<br>BOOST_PP_ENUM_SHIFTED_PARAMS
|
||||
<br>BOOST_PP_ENUM_SHIFTED_PARAMS_Z
|
||||
<br>BOOST_PP_ENUM_SHIFTED_
|
||||
@ -264,6 +267,8 @@
|
||||
<br>BOOST_PP_TUPLE_REVERSE
|
||||
<br>BOOST_PP_TUPLE_TO_LIST
|
||||
<br>BOOST_PP_TUPLE_TO_SEQ
|
||||
<!-- U -->
|
||||
<br>BOOST_PP_UPDATE_COUNTER
|
||||
<!-- V -->
|
||||
<br>BOOST_PP_VALUE
|
||||
<!-- W -->
|
||||
|
Reference in New Issue
Block a user