kennen:lib:count_if
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | kennen:lib:count_if [2020-06-14 12:58] (aktuell) – angelegt - Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== count_if() ====== | ||
+ | ''# | ||
+ | |||
+ | <code cpp> | ||
+ | difference_type count_if (In first, In last, Pred pred) | ||
+ | difference_type count_if (Exec pol, In first, In last, Pred pred) | ||
+ | |||
+ | difference_type ranges:: | ||
+ | difference_type ranges:: | ||
+ | </ | ||
+ | | ||
+ | |||
+ | ==== Parameter ==== | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | ==== Ergebnis ==== | ||
+ | Rückgabewert: | ||
+ | Anzahl der Iteratoren '' | ||
+ | für die '' | ||
+ | |||
+ | ==== Siehe auch ==== | ||
+ | [[count]]. | ||
+ | |||
+ | ==== Beispiel ==== | ||
+ | <code cpp count_if.cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | bool ist_Vokal(char c) | ||
+ | { | ||
+ | const char vokale[] = " | ||
+ | return std:: | ||
+ | } | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | std::string s = "Hallo Welt"; | ||
+ | std::cout << std:: | ||
+ | } | ||
+ | </ | ||