3 <title>BOOST_PP_SEQ_FILTER_S
</title>
4 <link rel=
"stylesheet" type=
"text/css" href=
"../styles.css">
7 <div style=
"margin-left: 0px;">
8 The
<b>BOOST_PP_SEQ_FILTER_S
</b> macro filters a
<i>seq
</i> according to a
9 supplied criterion.
It reenters
<b>BOOST_PP_SEQ_FOLD_LEFT
</b> with
16 <b>BOOST_PP_SEQ_FILTER_S
</b>(
<i>s
</i>,
<i>pred
</i>,
<i>data
</i>,
<i>seq
</i>)
24 The next available
<b>BOOST_PP_SEQ_FOLD_LEFT
</b> fold step.
28 A ternary predicate of the form
<i>pred
</i>(
<i>s
</i>,
<i>data
</i>,
<i>elem
</i>).
29 This predicate is expanded by
<b>BOOST_PP_SEQ_FILTER
</b> for each element in
<i>seq
</i>
30 with the next available
<b>BOOST_PP_SEQ_FOLD_LEFT
</b> fold step, the auxiliary
<i>data
</i>,
31 and the current element in
<i>seq
</i>.
This macro must return a integral
32 value in the range of
<i>0</i> to
<b>BOOST_PP_LIMIT_MAG
</b>.
If this
33 predicate expands to non-zero for a certain element, that element is included
34 in the resulting
<i>seq
</i>.
38 Auxiliary data passed to
<i>pred
</i>.
42 The
<i>seq
</i> to be filtered.
49 This macro expands
<i>pred
</i> for each element in
<i>seq
</i>.
It builds
50 a new
<i>seq
</i> out of each element for which
<i>pred
</i> returns non-zero.
57 <a href=
"limit_mag.html">BOOST_PP_LIMIT_MAG
</a></li>
59 <a href=
"seq_filter.html">BOOST_PP_SEQ_FILTER
</a></li>
65 <b>Header:
</b> <a href=
"../headers/seq/filter.html"><boost/preprocessor/seq/filter.hpp
></a>
68 <div style=
"margin-left: 0px;">
69 <i>© Copyright
<a href=
"http://www.housemarque.com" target=
"_top">Housemarque Oy
</a> 2002</i>
70 </br><i>© Copyright Paul Mensonides
2002</i>
72 <div style=
"margin-left: 0px;">
73 <p><small>Distributed under the Boost Software License, Version
1.0. (See
74 accompanying file
<a href=
"../../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</a> or
76 "http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt
</a>)
</small></p>