forked from boostorg/preprocessor
47 lines
1.2 KiB
HTML
47 lines
1.2 KiB
HTML
![]() |
<html>
|
||
|
<head>
|
||
|
<title>BOOST_PP_SET_SUBSET</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../styles.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div style="margin-left: 0px;">
|
||
|
The <b>BOOST_PP_SET_SUBSET</b> macro expands to a subset of elements in a <i>set</i>.
|
||
|
</div>
|
||
|
<h4>Usage</h4>
|
||
|
<div class="code">
|
||
|
<b>BOOST_PP_SET_SUBSET</b>(<i>set</i>, <i>i</i>, <i>len</i>)
|
||
|
</div>
|
||
|
<h4>Arguments</h4>
|
||
|
<dl>
|
||
|
<dt>set</dt>
|
||
|
<dd>
|
||
|
The <i>set</i> whose size is to be calculated.
|
||
|
</dd>
|
||
|
<dt>i</dt>
|
||
|
<dd>
|
||
|
The index of the first element of the subset to be extracted.
|
||
|
</dd>
|
||
|
<dt>len</dt>
|
||
|
<dd>
|
||
|
The length of the subset to be extracted.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<h4>Remarks</h4>
|
||
|
<div>
|
||
|
This macro expands to a <i>set</i> extracted from <i>set</i>.
|
||
|
</div>
|
||
|
<h4>Requirements</h4>
|
||
|
<div>
|
||
|
<b>Header:</b> <a href="../headers/set/subset.hpp.html"><boost/preprocessor/set/subset.hpp></a>
|
||
|
</div>
|
||
|
<h4>Sample Code</h4>
|
||
|
<div><pre>
|
||
|
#include <<a href="../headers/set/subset.hpp.html">boost/preprocessor/set/subset.hpp</a>>
|
||
|
|
||
|
#define SET (0)(1)(2)(3)(4)(5)
|
||
|
|
||
|
<a href="set_subset.html">BOOST_PP_SET_SUBSET</a>(SET, 2, 3) // expands to (2)(3)(4)
|
||
|
</pre></div>
|
||
|
</body>
|
||
|
</html>
|