set_difference

2021年6月19日

この関数は2つの集合オブジェクトを取り、それらに違いを与えます。 

#include <dlib / set_utils.h>

    template <
        typename T,
        typename U,
        typename V
        >
    void set_difference (
        const T& a,
        const U& b,
        V& d 
    );
    /*!
        requires
            - T, U, and V must all be implementations of set/set_kernel_abstract.h
            - the types of objects contained in these sets must be copyable
        ensures
            - #d == the difference of a and b.  That is, d contains all elements 
              of a that are NOT in b.
    !*/

Posted by kinya