Functions | |
void | Difference (SgVector< int > *vector, const SgVector< int > &vector2) |
Exclude all elements of vector2 from vector. | |
void | Intersection (SgVector< int > *vector, const SgVector< int > &vector2) |
Keep only elements in vector that also occur in vector2. |
Exclude all elements of vector2 from vector.
Definition at line 13 of file SgVectorUtil.cpp.
References SgVector< T >::Exclude().
Keep only elements in vector that also occur in vector2.
Definition at line 21 of file SgVectorUtil.cpp.
References SgVector< T >::Contains(), SgVector< T >::PushBack(), and SgVector< T >::SwapWith().