![]() |
Home | Libraries | People | FAQ | More |
A metafunction that returns the result type of count
given the sequence and search types.
template< typename Sequence, typename T > struct count { typedef int type; };
Table 1.64. Parameters
Parameter |
Requirement |
heading Description |
---|---|---|
|
A model of Forward Sequence |
Operation's argument |
|
Any type |
Operation's argument |
result_of::count
<T>::type
Return type: int
.
Semantics: Returns the return type of
count
. The return type is always
int
.
Constant.
#include <boost/fusion/algorithm/query/count.hpp> #include <boost/fusion/include/count.hpp>