kennen:lib:set_union
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Vorhergehende Überarbeitung | |||
— | kennen:lib:set_union [2023-10-14 12:21] (aktuell) – [Ergebnis] rrichter | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== set_union() ====== | ||
+ | ''# | ||
+ | |||
+ | <code cpp> | ||
+ | Out set_union (In first1, In last1, In2 first2, In2 last2, Out result) | ||
+ | Out set_union (In first1, In last1, In2 first2, In2 last2, Out result, Binary comp) | ||
+ | Out set_union (Exec pol, In first1, In last1, In2 first2, In2 last2, Out result) | ||
+ | Out set_union (Exec pol, In first1, In last1, In2 first2, In2 last2, Out result, Binary comp) | ||
+ | |||
+ | [last1, | ||
+ | | ||
+ | [last1, | ||
+ | | ||
+ | </ | ||
+ | | ||
+ | | ||
+ | |||
+ | Ist ein Element in beiden Bereichen vorhanden, wird das aus dem ersten Bereich kopiert. | ||
+ | |||
+ | ==== Parameter ==== | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | | '' | ||
+ | |||
+ | ==== Ergebnis | ||
+ | Rückgabewert: | ||
+ | als Struktur mit Elementen namens '' | ||
+ | |||
+ | |||
+ | ==== Siehe auch ==== | ||
+ | [[includes]], | ||
+ | [[set_intersection]], | ||
+ | [[set_difference]], | ||
+ | [[set_symmetric_difference]]. | ||
+ | |||
+ | ==== Beispiel ==== | ||
+ | <code cpp set_union.cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | double a[] = { 2, 4, 6, 8 }; | ||
+ | double b[] = { 2, 3, 5, 7 }; | ||
+ | |||
+ | std:: | ||
+ | } | ||
+ | </ | ||