Home
last modified time | relevance | path

Searched refs:mp_valid (Results 1 – 23 of 23) sorted by relevance

/third_party/boost/libs/mp11/test/
Dmp_valid.cpp36 using boost::mp11::mp_valid; in main()
40 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_identity>)); in main()
41 BOOST_TEST_TRAIT_TRUE((mp_valid<mp_identity, void>)); in main()
42 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_identity, void, void>)); in main()
44 BOOST_TEST_TRAIT_FALSE((mp_valid<X>)); in main()
45 BOOST_TEST_TRAIT_TRUE((mp_valid<X, void>)); in main()
46 BOOST_TEST_TRAIT_FALSE((mp_valid<X, int>)); in main()
47 BOOST_TEST_TRAIT_FALSE((mp_valid<X, void, void>)); in main()
49 BOOST_TEST_TRAIT_FALSE((mp_valid<QX::fn>)); in main()
50 BOOST_TEST_TRAIT_TRUE((mp_valid<QX::fn, void>)); in main()
[all …]
Dmp_eval_if_sf.cpp17 using boost::mp11::mp_valid;
24 BOOST_TEST_TRAIT_TRUE((mp_valid<eval_if, std::true_type>)); in main()
25 BOOST_TEST_TRAIT_TRUE((mp_valid<eval_if, std::true_type, void>)); in main()
26 BOOST_TEST_TRAIT_TRUE((mp_valid<eval_if, std::true_type, void, void>)); in main()
27 BOOST_TEST_TRAIT_TRUE((mp_valid<eval_if, std::true_type, void, void, void>)); in main()
29 BOOST_TEST_TRAIT_FALSE((mp_valid<eval_if, std::false_type>)); in main()
30 BOOST_TEST_TRAIT_TRUE((mp_valid<eval_if, std::false_type, void>)); in main()
31 BOOST_TEST_TRAIT_FALSE((mp_valid<eval_if, std::false_type, void, void>)); in main()
32 BOOST_TEST_TRAIT_FALSE((mp_valid<eval_if, std::false_type, void, void, void>)); in main()
36 BOOST_TEST_TRAIT_TRUE((mp_valid<mp_eval_if_q, std::true_type, void, Qi>)); in main()
[all …]
Dmp_starts_with_sf.cpp16 using boost::mp11::mp_valid; in main()
19 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_starts_with>)); in main()
20 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_starts_with, in main()
22 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_starts_with, in main()
24 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_starts_with, in main()
26 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_starts_with, in main()
28 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_starts_with, in main()
30 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_starts_with, in main()
32 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_starts_with, in main()
34 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_starts_with, in main()
[all …]
Dmp_cond_sf.cpp20 using boost::mp11::mp_valid; in main()
22 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_cond>)); in main()
24 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_cond, mp_true>)); in main()
25 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_cond, mp_false>)); in main()
27 BOOST_TEST_TRAIT_TRUE((mp_valid<mp_cond, mp_true, void>)); in main()
28 BOOST_TEST_TRAIT_TRUE((mp_valid<mp_cond, mp_true, void, void>)); in main()
30 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_cond, mp_false, void>)); in main()
31 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_cond, mp_false, void, void>)); in main()
33 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_cond, mp_false, void, mp_true>)); in main()
34 BOOST_TEST_TRAIT_TRUE((mp_valid<mp_cond, mp_false, void, mp_true, void>)); in main()
[all …]
Dmp_at_sf.cpp15 using boost::mp11::mp_valid;
22 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_at>)); in main()
23 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_at, void>)); in main()
24 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_at, void, void>)); in main()
25 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_at, void, void, void>)); in main()
27 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_at, void, mp_size_t<0>>)); in main()
29 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_at, mp_list<>, mp_size_t<0>>)); in main()
31 BOOST_TEST_TRAIT_TRUE((mp_valid<mp_at, mp_list<void>, mp_size_t<0>>)); in main()
32 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_at, mp_list<void>, mp_size_t<1>>)); in main()
34 BOOST_TEST_TRAIT_TRUE((mp_valid<mp_at, mp_list<void, void>, mp_size_t<0>>)); in main()
[all …]
Dmp_transform_sf.cpp18 using boost::mp11::mp_valid;
26 BOOST_TEST_TRAIT_FALSE((mp_valid<transform>)); in main()
27 BOOST_TEST_TRAIT_FALSE((mp_valid<transform, void>)); in main()
28 BOOST_TEST_TRAIT_FALSE((mp_valid<transform, void, void>)); in main()
29 BOOST_TEST_TRAIT_FALSE((mp_valid<transform, void, void, void>)); in main()
30 BOOST_TEST_TRAIT_FALSE((mp_valid<transform, void, void, void, void>)); in main()
31 BOOST_TEST_TRAIT_FALSE((mp_valid<transform, void, void, void, void, void>)); in main()
34 BOOST_TEST_TRAIT_TRUE((mp_valid<transform, mp_list<>>)); in main()
37 BOOST_TEST_TRAIT_FALSE((mp_valid<transform, mp_list<>, mp_list<void>>)); in main()
38 BOOST_TEST_TRAIT_FALSE((mp_valid<transform, mp_list<>, mp_list<>, mp_list<void>>)); in main()
[all …]
Dmp_set_difference_sf.cpp17 using boost::mp11::mp_valid; in main()
20 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_difference>)); in main()
21 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_difference, void>)); in main()
22 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_difference, void, void>)); in main()
23 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_difference, void, void, void>)); in main()
24 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_difference, void, void, void, void>)); in main()
25 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_difference, void, void, void, void, void>)); in main()
27 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_difference, mp_list<>, void>)); in main()
28 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_difference, mp_list<>, mp_list<>, void>)); in main()
29 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_difference, mp_list<>, mp_list<>, mp_list<>, void>)); in main()
[all …]
Dmp_invoke_q_sf.cpp18 using boost::mp11::mp_valid;
24 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_invoke_q>)); in main()
25 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_invoke_q, void>)); in main()
26 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_invoke_q, void, void>)); in main()
27 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_invoke_q, void, void, void>)); in main()
31 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_invoke_q, Qi>)); in main()
32 BOOST_TEST_TRAIT_TRUE((mp_valid<mp_invoke_q, Qi, void>)); in main()
33 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_invoke_q, Qi, void, void>)); in main()
38 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_invoke_q, Qt>)); in main()
40 BOOST_TEST_TRAIT_TRUE((mp_valid<mp_invoke_q, Qt, void>)); in main()
[all …]
Dmp_append_sf.cpp17 using boost::mp11::mp_valid; in main()
20 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, void>)); in main()
21 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, void, void>)); in main()
22 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, void, void, void>)); in main()
23 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, void, void, void, void>)); in main()
24 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, void, void, void, void, void>)); in main()
26 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, mp_list<>, void>)); in main()
27 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, mp_list<>, mp_list<>, void>)); in main()
28 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, mp_list<>, mp_list<>, mp_list<>, void>)); in main()
29 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_append, mp_list<>, mp_list<>, mp_list<>, mp_list<>, void>)); in main()
Dmp_set_intersection_sf.cpp17 using boost::mp11::mp_valid; in main()
20 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_intersection, void>)); in main()
21 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_intersection, void, void>)); in main()
22 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_intersection, void, void, void>)); in main()
23 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_intersection, void, void, void, void>)); in main()
24 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_intersection, void, void, void, void, void>)); in main()
26 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_intersection, mp_list<>, void>)); in main()
27 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_intersection, mp_list<>, mp_list<>, void>)); in main()
28 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_intersection, mp_list<>, mp_list<>, mp_list<>, void>)); in main()
29 …BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_intersection, mp_list<>, mp_list<>, mp_list<>, mp_list<>, … in main()
Dmp_set_union_sf.cpp17 using boost::mp11::mp_valid; in main()
20 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_union, void>)); in main()
21 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_union, void, void>)); in main()
22 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_union, void, void, void>)); in main()
23 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_union, void, void, void, void>)); in main()
24 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_union, void, void, void, void, void>)); in main()
26 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_union, mp_list<>, void>)); in main()
27 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_union, mp_list<>, mp_list<>, void>)); in main()
28 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_union, mp_list<>, mp_list<>, mp_list<>, void>)); in main()
29 …BOOST_TEST_TRAIT_FALSE((mp_valid<mp_set_union, mp_list<>, mp_list<>, mp_list<>, mp_list<>, void>)); in main()
Dmp_if_sf.cpp17 using boost::mp11::mp_valid; in main()
19 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_if, std::false_type, void>)); in main()
20 BOOST_TEST_TRAIT_TRUE((mp_valid<mp_if, std::false_type, void, void>)); in main()
21 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_if, std::false_type, void, void, void>)); in main()
Dmp_pop_back.cpp43 using boost::mp11::mp_valid; in main()
46 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_pop_back, L7>)); in main()
Dmp_back.cpp46 using boost::mp11::mp_valid; in main()
49 BOOST_TEST_TRAIT_FALSE((mp_valid<mp_back, L7>)); in main()
DJamfile136 run mp_valid.cpp ;
/third_party/boost/libs/variant2/test/
Dvariant_alternative.cpp113 BOOST_TEST_TRAIT_FALSE((mp_valid<var_alt_t, mp_size_t<0>, void>)); in main()
114 BOOST_TEST_TRAIT_FALSE((mp_valid<var_alt_t, mp_size_t<0>, void const>)); in main()
115 BOOST_TEST_TRAIT_FALSE((mp_valid<var_alt_t, mp_size_t<0>, void volatile>)); in main()
116 BOOST_TEST_TRAIT_FALSE((mp_valid<var_alt_t, mp_size_t<0>, void const volatile>)); in main()
118 BOOST_TEST_TRAIT_FALSE((mp_valid<var_alt_t, mp_size_t<0>, int&>)); in main()
119 BOOST_TEST_TRAIT_FALSE((mp_valid<var_alt_t, mp_size_t<0>, int const&>)); in main()
120 BOOST_TEST_TRAIT_FALSE((mp_valid<var_alt_t, mp_size_t<0>, int&&>)); in main()
121 BOOST_TEST_TRAIT_FALSE((mp_valid<var_alt_t, mp_size_t<0>, int const&&>)); in main()
123 BOOST_TEST_TRAIT_FALSE((mp_valid<var_alt_t, mp_size_t<0>, variant<>>)); in main()
124 BOOST_TEST_TRAIT_FALSE((mp_valid<var_alt_t, mp_size_t<0>, variant<> const>)); in main()
[all …]
Dvariant_size.cpp83 BOOST_TEST_TRAIT_FALSE((mp_valid<var_size_t, void>)); in main()
84 BOOST_TEST_TRAIT_FALSE((mp_valid<var_size_t, void const>)); in main()
85 BOOST_TEST_TRAIT_FALSE((mp_valid<var_size_t, void volatile>)); in main()
86 BOOST_TEST_TRAIT_FALSE((mp_valid<var_size_t, void const volatile>)); in main()
88 BOOST_TEST_TRAIT_FALSE((mp_valid<var_size_t, int&>)); in main()
89 BOOST_TEST_TRAIT_FALSE((mp_valid<var_size_t, int const&>)); in main()
90 BOOST_TEST_TRAIT_FALSE((mp_valid<var_size_t, int&&>)); in main()
91 BOOST_TEST_TRAIT_FALSE((mp_valid<var_size_t, int const&&>)); in main()
93 BOOST_TEST_TRAIT_TRUE((mp_valid<var_size_t, variant<>>)); in main()
94 BOOST_TEST_TRAIT_TRUE((mp_valid<var_size_t, variant<> const>)); in main()
[all …]
/third_party/boost/boost/mp11/
Dutility.hpp75 template<template<class...> class F, class... T> using mp_valid = typename detail::mp_valid_impl<vo… typedef
93 template<template<class...> class F, class... T> using mp_valid = typename detail::mp_valid_impl<F,… typedef
97 template<class Q, class... T> using mp_valid_q = mp_valid<Q::template fn, T...>;
116 using type = mp_if<mp_valid<F, T...>, detail::mp_defer_impl<F, T...>, detail::mp_no_type>;
129 template<template<class...> class F, class... T> using mp_defer = mp_if<mp_valid<F, T...>, detail::…
159 …mplate<class...> class F, class... U> using mp_eval_or = mp_eval_if_not<mp_valid<F, U...>, T, F, U…
Dalgorithm.hpp1212 …ss...> class R> using mp_iterate = typename detail::mp_iterate_impl<V, F, R, mp_valid<R, V>>::type;
/third_party/boost/boost/type_traits/detail/
Dmp_defer.hpp37 using mp_valid = typename mp_valid_impl<F, T...>::type; typedef
50 …s...> class F, class... T> using mp_defer = typename boost::conditional<mp_valid<F, T...>::value, …
/third_party/boost/libs/mp11/doc/mp11/
Dutility.adoc152 ## mp_valid<F, T...>
154 template<template<class...> class F, class... T> using mp_valid = /*...*/;
156 `mp_valid<F, T...>` is an alias for `mp_true` when `F<T...>` is a valid expression, for `mp_false` …
158 .Using mp_valid to write a metafunction that checks for the existence of a nested type
162 template<class T> struct has_nested_type: mp_valid<get_nested_type, T> {};
167 template<class Q, class... T> using mp_valid_q = mp_valid<Q::template fn, T...>;
169 Like `mp_valid`, but takes a quoted metafunction.
174 mp_eval_if_not<mp_valid<F, U...>, T, F, U...>;
216 When `mp_valid<F, T...>` is `mp_true`, `mp_defer<F, T...>` is a struct with a nested type `type` wh…
/third_party/boost/boost/histogram/detail/
Darray_wrapper.hpp28 using has_array_optimization = mp11::mp_or<mp11::mp_valid<has_save_array_impl, T>,
29 mp11::mp_valid<has_load_array_impl, T>>;
/third_party/boost/boost/variant2/
Dvariant.hpp1218 template<class T> struct is_swappable: mp11::mp_valid<det2::is_swappable_impl, T>
1230 template<class T> struct is_nothrow_swappable: mp11::mp_valid<det2::is_nothrow_swappable_impl, T>