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/算法>

命名空间: cliext

请参见

参考

algorithm (STL/CLR)