mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-02 23:36:54 +02:00
35 lines
877 B
HTML
35 lines
877 B
HTML
![]() |
<html>
|
||
|
<head>
|
||
|
<title>BOOST_PP_SET_TO_ARRAY</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../styles.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div style="margin-left: 0px;">
|
||
|
The <b>BOOST_PP_SET_TO_ARRAY</b> macro converts a <i>set</i> to an <i>array</i>.
|
||
|
</div>
|
||
|
<h4>Usage</h4>
|
||
|
<div class="code">
|
||
|
<b>BOOST_PP_SET_TO_ARRAY</b>(<i>set</i>)
|
||
|
</div>
|
||
|
<h4>Arguments</h4>
|
||
|
<dl>
|
||
|
<dt>set</dt>
|
||
|
<dd>
|
||
|
The <i>set</i> to be converted.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<h4>Requirements</h4>
|
||
|
<div>
|
||
|
<b>Header:</b> <a href="../headers/set/to_array.hpp.html"><boost/preprocessor/set/to_array.hpp></a>
|
||
|
</div>
|
||
|
<h4>Sample Code</h4>
|
||
|
<div><pre>
|
||
|
#include <<a href="../headers/set/to_array.hpp.html">boost/preprocessor/set/to_array.hpp</a>>
|
||
|
|
||
|
#define SET (a)(b)(c)
|
||
|
|
||
|
<a href="set_to_array.html">BOOST_PP_SET_TO_ARRAY</a>(SET) // expands to (3, (a, b, c))
|
||
|
</pre></div>
|
||
|
</body>
|
||
|
</html>
|