kennen:lib:find_end
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | kennen:lib:find_end [2020-06-14 14:38] (aktuell) – angelegt - Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== find_end() ====== | ||
+ | ''# | ||
+ | |||
+ | <code cpp> | ||
+ | For find_end (For first, For last, For2 first2, For2 last2) | ||
+ | For find_end (For first, For last, For2 first2, For2 last2, Binary pred) | ||
+ | For find_end (Exec pol, For first, For last, For2 first2, For2 last2) | ||
+ | For find_end (Exec pol, For first, For last, For2 first2, For2 last2, Binary pred) | ||
+ | |||
+ | Range ranges:: | ||
+ | Range ranges:: | ||
+ | </ | ||
+ | | ||
+ | der mit [first2, | ||
+ | für dessen Elemente '' | ||
+ | |||
+ | ==== Parameter ==== | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | ==== Ergebnis ==== | ||
+ | Rückgabewert: | ||
+ | '' | ||
+ | bei dem '' | ||
+ | Wurde kein solcher Teilbereich gefunden, wird '' | ||
+ | ==== Siehe auch ==== | ||
+ | [[search]]. | ||
+ | |||
+ | ==== Beispiel ==== | ||
+ | <code cpp find_end.cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | const char str[] = "Hallo Welt"; | ||
+ | const char vokal[] = " | ||
+ | |||
+ | const char *pos = std:: | ||
+ | | ||
+ | if (pos != end(str)) | ||
+ | { | ||
+ | std::cout << pos << ' | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | <code cpp rg_find_end.cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | std::string heuhaufen = " | ||
+ | std::string nadel = " | ||
+ | |||
+ | auto r = std:: | ||
+ | auto n = r.begin() - heuhaufen.begin(); | ||
+ | |||
+ | std:: | ||
+ | << heuhaufen << ' | ||
+ | << std:: | ||
+ | } | ||
+ | </ | ||
kennen/lib/find_end.txt · Zuletzt geändert: 2020-06-14 14:38 von 127.0.0.1