mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-24 17:27:14 +02:00
preliminary set support
[SVN r15908]
This commit is contained in:
50
doc/ref/set_push_back.html
Normal file
50
doc/ref/set_push_back.html
Normal file
@ -0,0 +1,50 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>BOOST_PP_SET_PUSH_BACK</title>
|
||||
<link rel="stylesheet" type="text/css" href="../styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<div style="margin-left: 0px;">
|
||||
The <b>BOOST_PP_SET_PUSH_BACK</b> macro pushes an element onto the end of a <i>set</i>.
|
||||
</div>
|
||||
<h4>Usage</h4>
|
||||
<div class="code">
|
||||
<b>BOOST_PP_SET_PUSH_BACK</b>(<i>set</i>, <i>elem</i>)
|
||||
</div>
|
||||
<h4>Arguments</h4>
|
||||
<dl>
|
||||
<dt>set</dt>
|
||||
<dd>
|
||||
The <i>set</i> onto which <i>elem</i> is pushed.
|
||||
</dd>
|
||||
<dt>elem</dt>
|
||||
<dd>
|
||||
The element to push onto the end of <i>set</i>.
|
||||
</dd>
|
||||
</dl>
|
||||
<h4>Remarks</h4>
|
||||
<div>
|
||||
This macro returns <i>set</i> after appending <i>elem</i>.
|
||||
</div>
|
||||
<div>
|
||||
This macro is an explicit form of directly appending an element.
|
||||
In other words, <b>BOOST_PP_SET_PUSH_BACK</b>(<i>set</i>, <i>x</i>) is equivalent to <i>set</i>(<i>x</i>).
|
||||
</div>
|
||||
<h4>See Also</h4>
|
||||
<ul>
|
||||
<li><a href="set_push_front.html">BOOST_PP_SET_PUSH_FRONT</a></li>
|
||||
</ul>
|
||||
<h4>Requirements</h4>
|
||||
<div>
|
||||
<b>Header:</b> <a href="../headers/set/push_back.hpp.html"><boost/preprocessor/set/push_back.hpp></a>
|
||||
</div>
|
||||
<h4>Sample Code</h4>
|
||||
<div><pre>
|
||||
#include <<a href="../headers/set/push_back.hpp.html">boost/preprocessor/set/push_back.hpp</a>>
|
||||
|
||||
#define SET (a)(b)
|
||||
|
||||
<a href="set_push_back.html">BOOST_PP_SET_PUSH_BACK</a>(SET, c) // expands to (a)(b)(c)
|
||||
</pre></div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user