Description
set_intersection() computes the intersection of two sorted sequences of elements, and inserts the result into a container referenced by an output iterator. Duplicate elements are eliminated on output.
Declaration
template <class In, class In2, class Out> Out set_intersection(In, In, In2, In2, Out); template <class In, class In2, class Out, class Cmp> Out set_intersection(In, In, In2, In2, Out, Cmp);
Concept
The sample sets up two sorted vectors, and then computes their intersection. The results of the computation are inserted into a third vector, using a back_inserter() function. The values 3 and 19 are output by the program.
Supported
Supported
Supported