| title |
count_if (STL/CLR) | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
reference |
| f1_keywords |
|
| dev_langs |
|
| helpviewer_keywords |
count_if function [STL/CLR] |
|
| ms.assetid |
a8aa149d-20b8-4b3f-917b-1ec66f178a5d |
| caps.latest.revision |
4 |
| author |
mikeblome |
| ms.author |
mblome |
| manager |
ghogen |
| translation.priority.ht |
cs-cz |
de-de |
es-es |
fr-fr |
it-it |
ja-jp |
ko-kr |
pl-pl |
pt-br |
ru-ru |
tr-tr |
zh-cn |
zh-tw |
|
Returns the number of elements in a range whose values match a specified condition.
template<class _InIt, class _Pr> inline
typename iterator_traits<_InIt>::difference_type
count_if(_InIt _First, _InIt _Last, _Pr _Pred);
Remarks
This function behaves the same as the C++ Standard Library function count_if. For more information, see count_if.
Header: <cliext/algorithm>
Namespace: cliext
algorithm (STL/CLR)