kennen:lib:equal
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | kennen:lib:equal [2020-06-14 17:39] (aktuell) – angelegt - Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== equal() ====== | ||
+ | ''# | ||
+ | |||
+ | <code cpp> | ||
+ | bool equal (For first, For last, For2 first2) | ||
+ | bool equal (For first, For last, For2 first2, Binary pred) | ||
+ | bool equal (For first, For last, For2 first2, For2 last2) | ||
+ | bool equal (For first, For last, For2 first2, For2 last2, Binary pred) | ||
+ | bool equal (Exec pol, For first, For last, For2 first2) | ||
+ | bool equal (Exec pol, For first, For last, For2 first2, Binary pred) | ||
+ | bool equal (Exec pol, For first, For last, For2 first2, For2 last2) | ||
+ | bool equal (Exec pol, For first, For last, For2 first2, For2 last2, Binary pred) | ||
+ | |||
+ | bool ranges:: | ||
+ | bool ranges:: | ||
+ | </ | ||
+ | Ist wahr, wenn die Bereiche [first, | ||
+ | |||
+ | ==== Parameter ==== | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | ==== Ergebnis ==== | ||
+ | Rückgabewert: | ||
+ | wenn für jeden Iterator '' | ||
+ | '' | ||
+ | '' | ||
+ | |||
+ | ==== Siehe auch ==== | ||
+ | [[mismatch]]. | ||
+ | |||
+ | ==== Beispiel ==== | ||
+ | <code cpp equal.cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | const char* str = " | ||
+ | |||
+ | std::cout << str << ' | ||
+ | << str+6 << ' | ||
+ | << std::equal( str+1, str+6, str+8 ) << ' | ||
+ | } | ||
+ | </ | ||