Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2023. The current version is 1.89.0.
Returns the result type of filter given the sequence type
and type to retain.
template< typename Sequence, typename T > struct filter { typedef unspecified type; };
Table 1.87. Parameter
|
Parameter |
Requirement |
Description |
|---|---|---|
|
|
A model of Forward Sequence |
Operation's argument |
|
|
Any type |
Type to retain |
result_of::filter<Sequence, T>::type
Return type:
Sequence
implements the Associative
Sequence model.
Semantics: Returns a sequence containing
the elements of Sequence
that are of type T. Equivalent
to .
result_of::filter_if<Sequence,
boost::is_same<mpl::_, T> >::type
Constant.
#include <boost/fusion/algorithm/transformation/filter.hpp> #include <boost/fusion/include/filter.hpp>