set_intersection

2021年6月19日

この関数は2つの集合オブジェクトを受け取り、それらの共通部分を求めます。

#include <dlib / set_utils.h>

    template <
        typename T,
        typename U,
        typename V
        >
    void set_intersection (
        const T& a,
        const U& b,
        V& i
    );
    /*!
        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
            - #i == the intersection of a and b.  That is, i contains all elements 
              of a that are also in b.
    !*/

Posted by kinya