llvm::set_intersect

Compute the intersection of S1 and S2, updating S1 in place.

Synopsis

Declared in <llvm/ADT/SetOperations.h>

template<
    class S1Ty,
    class S2Ty>
void
set_intersect(
    S1Ty& S1,
    S2Ty const& S2);

Description

Identical to set_intersection, except that it works on set<>'s and is nicer to use. Functionally, this iterates through S1, removing elements that are not contained in S2.

Parameters

NameDescription
S1Set updated to contain only elements also in S2.
S2Set used for membership tests.