...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Returns the result type of find_if
given the sequence and
predicate types.
template< typename Sequence, typename Pred > struct find_if { typedef unspecified type; };
Table 1.61. Parameters
Parameter |
Requirement |
Description |
---|---|---|
|
A model of Forward Sequence |
Operation's argument |
|
A model of MPL Lambda Expression |
Operation's arguments |
result_of::find_if
<Sequence, Pred>::type
Return type: A model of the same iterator
category as the iterators of Sequence
.
Semantics: Returns an iterator to the
first element in Sequence
for which Pred
evaluates
to true. Returns
if there is no such element.
result_of::end
<Sequence>::type
Linear. At most
comparisons.
result_of::size
<Sequence>::value
#include <boost/fusion/algorithm/query/find_if.hpp> #include <boost/fusion/include/find_if.hpp>