1
0
forked from boostorg/mp11

Document mp_set_intersection, mp_set_difference

This commit is contained in:
Peter Dimov
2019-01-07 22:53:35 +02:00
parent 614dec90a7
commit f3416b0991

View File

@@ -43,5 +43,19 @@ For each `T1` in `T...`, `mp_set_push_back<S, T...>` appends `T1` to the end of
template<class... L> using mp_set_union = /*...*/;
`mp_set_union<S, L...>` is `mp_set_push_back<S, T...>`, where `T...` are the elements of `mp_append<mp_list<>, L...>`.
`mp_set_union<S, L...>` is `mp_set_push_back<S, T...>`, where `T...` are the combined elements of the lists `L...`.
`mp_set_union<>` is `mp_list<>`.
## mp_set_intersection<S...>
template<class... S> using mp_set_intersection = /*...*/;
`mp_set_intersection<S...>` returns a set that contains the elements that occur in all of the sets `S...`.
`mp_set_intersection<>` is `mp_list<>`.
## mp_set_difference<L, S...>
template<class L, class... S> using mp_set_difference = /*...*/;
`mp_set_difference<L, S...>` removes the elements of the list `L` that appear in any of the sets `S...` and
returns the result.