forked from boostorg/mp11
Document mp_intersperse
This commit is contained in:
@@ -563,6 +563,15 @@ using L3 = mp_list<mp_list<float>, mp_list<mp_list<void>>>;
|
|||||||
using R3 = mp_flatten<L3>; // mp_list<float, mp_list<void>>
|
using R3 = mp_flatten<L3>; // mp_list<float, mp_list<void>>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## mp_intersperse<L, S>
|
||||||
|
|
||||||
|
template<class L, class S> using mp_intersperse = /*...*/;
|
||||||
|
|
||||||
|
Inserts the separator `S` between the elements of `L`.
|
||||||
|
|
||||||
|
`mp_intersperse<L<>, S>` is `L<>`. `mp_intersperse<L<T1>, S>` is `L<T1>`.
|
||||||
|
`mp_intersperse<L<T1, T2, T3, ..., Tn-1, Tn>, S>` is `L<T1, S, T2, S, T3, S, ..., Tn-1, S, Tn>`.
|
||||||
|
|
||||||
## mp_partition<L, P>
|
## mp_partition<L, P>
|
||||||
|
|
||||||
template<class L, template<class...> class P> using mp_partition = /*...*/;
|
template<class L, template<class...> class P> using mp_partition = /*...*/;
|
||||||
|
Reference in New Issue
Block a user