返回范围中其值与指定值匹配的元素的数量。
template<class _InIt, class _Ty> inline
typename iterator_traits<_InIt>::difference_type
count(_InIt _First, _InIt _Last, const _Ty% _Val);
备注
此函数行为与 STL count函数相同。 有关详细信息,请参阅count。
要求
标头: <cliext/algorithm>
命名空间: cliext