kennen:lib:set_symmetric_difference
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Vorhergehende Überarbeitung | |||
— | kennen:lib:set_symmetric_difference [2023-10-14 12:23] (aktuell) – [Ergebnis] rrichter | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== set_symmetric_difference() ====== | ||
+ | ''# | ||
+ | |||
+ | <code cpp> | ||
+ | Out set_symmetric_difference (In first1, In last1, In2 first2, In2 last2, Out result) | ||
+ | Out set_symmetric_difference (In first1, In last1, In2 first2, In2 last2, Out result, Binary comp) | ||
+ | Out set_symmetric_difference (Exec pol, In first1, In last1, In2 first2, In2 last2, Out result) | ||
+ | Out set_symmetric_difference (Exec pol, In first1, In last1, In2 first2, In2 last2, Out result, Binary comp) | ||
+ | |||
+ | [last1,res] = ranges:: | ||
+ | Binary comp = {}, Proj1 proj1 = {}, Proj2 proj2 = {}) | ||
+ | [last1,res] = ranges:: | ||
+ | Binary comp = {}, Proj1 proj1 = {}, Proj2 proj2 = {}) | ||
+ | </ | ||
+ | | ||
+ | die nur in einem der beiden sortierten Bereiche [first, | ||
+ | und [first2, | ||
+ | |||
+ | ==== Parameter ==== | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | ==== Ergebnis | ||
+ | Rückgabewert: | ||
+ | als Struktur mit Elementen namens '' | ||
+ | |||
+ | |||
+ | ==== Siehe auch ==== | ||
+ | [[includes]], | ||
+ | [[set_intersection]], | ||
+ | [[set_difference]], | ||
+ | [[set_union]]. | ||
+ | |||
+ | ==== Beispiel ==== | ||
+ | <code cpp set_symmetric_difference.cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | double a[] = { 2, 4, 6, 8 }; | ||
+ | double b[] = { 2, 3, 5, 7 }; | ||
+ | |||
+ | std:: | ||
+ | } | ||
+ | </ | ||