forked from boostorg/mp11
Update documentation
This commit is contained in:
1 parent
e93cf70178
commit
3f8a53ac89
3 files changed
+26
-2
No files matched your search
@@ -235,6 +235,8 @@ otherwise.
|
||||
|
||||
`mp_repeat_c<L, N>` returns a list of the same form as `L` that consists of `N` concatenated copies of `L`.
|
||||
|
||||
Supports value lists as `L` under {cpp}17.
|
||||
|
||||
.Using mp_repeat_c
|
||||
```
|
||||
using L1 = tuple<int>;
|
||||
@@ -248,6 +250,9 @@ using R3 = mp_repeat_c<L3, 2>; // mp_list<int, float, int, float>
|
||||
|
||||
using L4 = mp_list<int, float, double>;
|
||||
using R4 = mp_repeat_c<L4, 0>; // mp_list<>
|
||||
|
||||
using L5 = mp_list_v<true, 8>;
|
||||
using R5 = mp_repeat_c<L5, 2>; // mp_list_v<true, 8, true, 8>
|
||||
```
|
||||
|
||||
## mp_repeat<L, N>
|
||||
@@ -256,6 +261,8 @@ using R4 = mp_repeat_c<L4, 0>; // mp_list<>
|
||||
|
||||
Same as `mp_repeat_c` but with a type argument `N`. The number of copies is `N::value` and must be nonnegative.
|
||||
|
||||
Supports value lists as `L` under {cpp}17.
|
||||
|
||||
## mp_product<F, L...>
|
||||
|
||||
template<template<class...> class F, class... L> using mp_product = /*...*/;
|
||||
|
||||
Reference in new issue
Block a user