mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-06 09:16:32 +02:00
40 lines
1018 B
HTML
40 lines
1018 B
HTML
![]() |
<html>
|
||
|
<head>
|
||
|
<title>BOOST_PP_SET_HEAD</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../styles.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div style="margin-left: 0px;">
|
||
|
The <b>BOOST_PP_SET_HEAD</b> macro expands to the first element in a <i>set</i>.
|
||
|
</div>
|
||
|
<h4>Usage</h4>
|
||
|
<div class="code">
|
||
|
<b>BOOST_PP_SET_HEAD</b>(<i>set</i>)
|
||
|
</div>
|
||
|
<h4>Arguments</h4>
|
||
|
<dl>
|
||
|
<dt>set</dt>
|
||
|
<dd>
|
||
|
The <i>set</i> from which the first element is extracted.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<h4>See Also</h4>
|
||
|
<ul>
|
||
|
<li><a href="set_tail.html">BOOST_PP_SET_TAIL</a></li>
|
||
|
</ul>
|
||
|
<h4>Requirements</h4>
|
||
|
<div>
|
||
|
<b>Header:</b> <a href="../headers/set/set.hpp.html"><boost/preprocessor/set/set.hpp></a>
|
||
|
</div>
|
||
|
<h4>Sample Code</h4>
|
||
|
<div><pre>
|
||
|
#include <<a href="../headers/set/set.hpp.html">boost/preprocessor/set/set.hpp</a>>
|
||
|
|
||
|
#define SET (a)(b)(c)
|
||
|
|
||
|
<a href="set_head.html">BOOST_PP_SET_HEAD</a>(SET) // expands to a
|
||
|
<a href="set_tail.html">BOOST_PP_SET_TAIL</a>(SET) // expands to (b)(c)
|
||
|
</pre></div>
|
||
|
</body>
|
||
|
</html>
|