diff --git a/doc/html/mp11.html b/doc/html/mp11.html index c8b05d3..6489b42 100644 --- a/doc/html/mp11.html +++ b/doc/html/mp11.html @@ -108,8 +108,6 @@
mp_remove_if<L, P>
mp_partition<L, P>
mp_sort<L, P>
mp_find_index<L, V>
mp_find_index_if<L, P>
mp_find<L, V>
mp_find_if<L, P>
mp_reverse<L>
template<class L, class V> using mp_find_index = /*...*/; --
template<class L, template<class...> class P> using mp_find_index_if = /*...*/; --
template<class L, class V> using mp_find = mp_drop<L, mp_find_index<L, V>>; +template<class L, class V> using mp_find = /*...*/;++
mp_find<L, V>
is an alias formp_size_t<I>
, whereI
+ is the zero-based index of the first occurence ofV
+ inL
. IfL
does not containV
, +mp_find<L, V>
ismp_size<L>
. +
template<class L, template<class...> class P> using mp_find_if = mp_drop<L, mp_find_index_if<L, P>>; +template<class L, template<class...> class P> using mp_find_if = /*...*/;++
mp_find_f<L, P>
is an alias formp_size_t<I>
, whereI
+ is the zero-based index of the first elementT
+ inL
for whichmp_to_bool<P<T>>
+ ismp_true
. If there is + no such element,mp_find<L, V>
+ ismp_size<L>
. +
template<class L> using mp_reverse = /*...*/;+
+ mp_reverse<L<T1, T2, ..., Tn>>
is L<Tn, ..., T2, T1>
.
+
template<class L, class V, template<class...> class F> using mp_fold = /*...*/;+
+ mp_fold<L<T1, T2, ..., Tn>, V, F>
+ is F<
+ F<
+ F<
+ F<V, T1>, T2>, ...>,
+ Tn>
,
+ or V
, if L
is empty.
+
template<class L, class V, template<class...> class F> using mp_reverse_fold = /*...*/;+
+ mp_reverse_fold<L<T1, T2, ..., Tn>, V, F>
+ is F<T1, F<T2, F<..., F<Tn, V>>>>
,
+ or V
, if L
is empty.
+
template<class L> using mp_unique = /*...*/;+
+ mp_unique<L>
+ returns a list of the same type as L
+ with the duplicate elements removed.
+
template<class L, template<class...> class P> using mp_all_of = mp_bool< mp_count_if<L, P>::value == mp_size<L>::value >;+
+ mp_all_of<L, P>
is mp_true
+ when P
holds for all elements
+ of L
, mp_false
+ otherwise. When L
is empty,
+ the result is mp_true
.
+
template<class L, template<class...> class P> using mp_none_of = mp_bool< mp_count_if<L, P>::value == 0 >;+
+ mp_none_of<L, P>
is mp_true
+ when P
holds for no element
+ of L
, mp_false
+ otherwise. When L
is empty,
+ the result is mp_true
.
+
template<class L, template<class...> class P> using mp_any_of = mp_bool< mp_count_if<L, P>::value != 0 >;+
+ mp_any_of<L, P>
is mp_true
+ when P
holds for at least
+ one element of L
, mp_false
otherwise. When L
is empty, the result is mp_false
.
+
Last revised: March 15, 2017 at 17:28:31 GMT |
+Last revised: March 15, 2017 at 18:15:15 GMT |
>`.
[endsect]
-[section `mp_find_index >` is `mp_true`. If there is no such element, `mp_find