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 14 of file SgVectorUtility.cpp.
References SgVector< T >::Exclude().
Keep only elements in vector that also occur in vector2.
Definition at line 22 of file SgVectorUtility.cpp.
References SgVector< T >::Contains(), SgVector< T >::PushBack(), and SgVector< T >::SwapWith().