Description
set_union() computes the union of two sorted sequences of elements, and places the result in a container referenced by an iterator. Duplicates in the union are eliminated.
Declaration
template <class In, class In2, class Out> Out set_union(In, In, In2, In2, Out); template <class In, class In2, class Out, class Cmp> Out set_union(In, In, In2, In2, Out, Cmp);
Concept
The sample program computes the union of two sets of C-style strings. In this example the user-supplied comparison is necessary, so that the actual string contents are compared instead of the values of the pointers to the strings. The output is 1 2 5 7 8 9.
Supported
Supported
Supported