Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
count
Description

A metafunction that returns the result type of count given the sequence and search types.

Synopsis
template<
    typename Sequence,
    typename T
    >
struct count
{
    typedef int type;
};

Parameters

Parameter Requirement heading Description
Sequence A model of Forward Sequence Operation's argument
T Any type Operation's argument
Expression Semantics
result_of::count<T>::type

Return type: int.

Semantics: Returns the return type of count. The return type is always int.

Complexity

Constant.

Header
#include <boost/fusion/algorithm/query/count.hpp>
Copyright © 2001-2005 Joel de Guzman, Dan Marsden

PrevUpHomeNext