kennen:lib:all_of
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | kennen:lib:all_of [2020-06-14 12:46] (aktuell) – angelegt - Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== all_of() ====== | ||
+ | ''# | ||
+ | |||
+ | <code cpp> | ||
+ | bool all_of (In first, In last, Pred pred) | ||
+ | bool all_of (Exec pol, In first, In last, Pred pred) | ||
+ | |||
+ | bool ranges:: | ||
+ | bool ranges:: | ||
+ | </ | ||
+ | | ||
+ | Bei leerem Bereich liefert die Funktion '' | ||
+ | |||
+ | ==== Parameter ==== | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | ==== Ergebnis ==== | ||
+ | Rückgabewert: | ||
+ | Wurde kein Element gefunden, wird '' | ||
+ | |||
+ | ==== Siehe auch ==== | ||
+ | [[any_of]], | ||
+ | [[none_of]]. | ||
+ | |||
+ | ==== Beispiel ==== | ||
+ | <code cpp all_of.cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | bool ist_vokal(char c) | ||
+ | { | ||
+ | return c==' | ||
+ | } | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | const char str[] = "Hallo Welt"; | ||
+ | std::cout << std:: | ||
+ | } | ||
+ | </ | ||