kennen:lib:find
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | kennen:lib:find [2020-06-14 13:23] (aktuell) – angelegt - Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== find() ====== | ||
+ | ''# | ||
+ | |||
+ | <code cpp> | ||
+ | In find (In first, In last, T wert) | ||
+ | In find (Exec pol, In first, In last, T wert) | ||
+ | |||
+ | In ranges:: | ||
+ | In ranges:: | ||
+ | </ | ||
+ | | ||
+ | |||
+ | ==== Parameter ==== | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | ==== Ergebnis ==== | ||
+ | Rückgabewert: | ||
+ | Wurde kein Element gefunden, wird '' | ||
+ | |||
+ | ==== Siehe auch ==== | ||
+ | [[find_if]], | ||
+ | [[find_first_of]]. | ||
+ | |||
+ | ==== Beispiel ==== | ||
+ | <code cpp find.cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | const char str[] = "Hallo Welt"; | ||
+ | |||
+ | const char* pos = std:: | ||
+ | | ||
+ | if (pos != end(str)) | ||
+ | { | ||
+ | std::cout << pos << ' | ||
+ | } | ||
+ | } | ||
+ | </ | ||