Prev Next

@(@\newcommand{\W}[1]{ \; #1 \; } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\B}[1]{ {\bf #1} } \newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} } \newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} } \newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} } \newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }@)@This is cppad-20221105 documentation. Here is a link to its current documentation .
Union of Standard Sets

Syntax
# include <cppad/utility/set_union.hpp>
result = set_union(leftright)

Purpose
This is a simplified (and restricted) interface to the std::union operation.

Element
This is the type of the elements of the sets.

left
This argument has prototype
    const std::set<
Element>& left

right
This argument has prototype
    const std::set<
Element>& right

result
The return value has prototype
    std::set<
Element>& result
It contains the union of left and right . Note that C++11 detects that the return value is a temporary and uses it for the result instead of making a separate copy.

Example
The file set_union.cpp contains an example and test of this
Input File: include/cppad/utility/set_union.hpp