diff --git a/doc/html/mp11.html b/doc/html/mp11.html index d671040..61b6950 100644 --- a/doc/html/mp11.html +++ b/doc/html/mp11.html @@ -166,6 +166,7 @@
<boost/mp11/function.hpp>mp_void<T...>mp_and<T...>mp_all<T...>mp_or<T...>template<class... T> using mp_void = void; ++
+ Same as std::void_t from C++17.
+
template<class... T> using mp_and = /*...*/; @@ -2168,12 +2179,17 @@ if there exists a typeUinT...for whichmp_to_bool<U>- ismp_false.mp_to_bool<U>+ is notmp_true.mp_to_bool<U>is not evaluated for types afterU. If no such type exists,mp_and<T...>is an alias formp_true. (mp_and<>ismp_true.) +using R1 = mp_and<mp_true, mp_true>; // mp_true +using R2 = mp_and<mp_false, void>; // mp_false, void is not reached +using R3 = mp_and<mp_false, mp_false>; // mp_false +using R4 = mp_and<void, mp_true>; // mp_false (!) +
mp_all
is faster on legacy compilers.
+using R1 = mp_and<mp_true, mp_true>; // mp_true +using R2 = mp_and<mp_false, void>; // compile-time error +using R3 = mp_and<mp_false, mp_false>; // mp_false +using R4 = mp_and<void, mp_true>; // compile-time error +
mp_or<T...>
- is an alias for mp_true
- if there exists a type U
- in T...
- for which mp_to_bool<U>
- is mp_true. mp_to_bool<U>
- is not evaluated for types after U.
- If no such type exists, mp_or<T...> is an alias for mp_false.
- (mp_or<>
- is mp_false.)
+ applies mp_to_bool to the
+ types in T...,
+ in order. If the result of an application is mp_true,
+ mp_or returns mp_true. If all results are mp_false, returns mp_false.
+ mp_or<>
+ is mp_false.
using R1 = mp_or<mp_true, mp_false>; // mp_true +using R2 = mp_or<mp_true, void>; // mp_true, void is not reached +using R3 = mp_or<mp_false, mp_false>; // mp_false +using R4 = mp_or<void, mp_true>; // compile-time error +
mp_or,
but does not perform short-circuit evaluation.
+using R1 = mp_any<mp_true, mp_false>; // mp_true +using R2 = mp_any<mp_true, void>; // compile-time error +using R3 = mp_any<mp_false, mp_false>; // mp_false +using R4 = mp_any<void, mp_true>; // compile-time error +
Last revised: May 23, 2017 at 20:23:39 GMT |
+Last revised: May 23, 2017 at 22:20:27 GMT |