count_if (STL/CLR)

返回范围中其值与指定条件匹配的元素的数量。

template<class _InIt, class _Pr> inline
    typename iterator_traits<_InIt>::difference_type
        count_if(_InIt _First, _InIt _Last, _Pr _Pred);

备注

此函数行为与 STL count_if函数相同。 有关详细信息,请参阅count_if

要求

标头: <cliext/algorithm>

命名空间: cliext

请参见

参考

algorithm (STL/CLR)