...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
, given the sequence and
search types.
template< typename Sequence, typename T > struct find { typedef unspecified type; };
Table 1.59. Parameters
Parameter |
Requirement |
Description |
---|---|---|
|
Model of Forward Sequence |
Operation's argument |
|
Any type |
Operation's argument |
result_of::find
<Sequence, T>::type
Return type: A model of the same iterator
category as the iterators of Sequence
.
Semantics: Returns an iterator to the
first element of type T
in Sequence
, or
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.hpp> #include <boost/fusion/include/find.hpp>