![]() |
Home | Libraries | People | FAQ | More |
A metafunction that returns the result type of count_if given the sequence and predicate types.
template< typename Sequence, typename Pred > struct count_if { typedef int type; };
| Parameter | Requirement | Description |
|---|---|---|
| Sequence | A model of Forward Sequence | Operation's argument |
| Pred | A unary function object | Operation's argument |
result_of::count_if<Sequence, Pred>::type
Return type: int.
Semantics: Returns the return type of count_if. The return type is always int.
Constant.
#include <boost/fusion/algorithm/query/count_if.hpp>
| Copyright © 2001-2005 Joel de Guzman, Dan Marsden |