Home
last modified time | relevance | path

Searched refs:mp_identity (Results 1 – 25 of 34) sorted by relevance

12

/third_party/boost/libs/mp11/test/
Dmp_eval_if.cpp18 using boost::mp11::mp_identity; in main()
20 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_eval_if_c<true, char[], mp_identity, void, void, void>, cha… in main()
21 …T_TEST_TRAIT_TRUE((std::is_same<mp_eval_if_c<false, char[], mp_identity, void()>, mp_identity<void… in main()
27 using qt_identity = mp_quote<mp_identity>; in main()
29 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_eval_if<std::true_type, char[], mp_identity, void, void, vo… in main()
30 …RAIT_TRUE((std::is_same<mp_eval_if<std::false_type, char[], mp_identity, void()>, mp_identity<void… in main()
33 …E((std::is_same<mp_eval_if_q<std::false_type, char[], qt_identity, void()>, mp_identity<void()>>)); in main()
37 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_eval_if<mp_int<-7>, char[], mp_identity, void, void, void>,… in main()
38 …TEST_TRAIT_TRUE((std::is_same<mp_eval_if<mp_int<0>, char[], mp_identity, void()>, mp_identity<void… in main()
41 …IT_TRUE((std::is_same<mp_eval_if_q<mp_int<0>, char[], qt_identity, void()>, mp_identity<void()>>)); in main()
[all …]
Dmp_eval_if_not.cpp17 using boost::mp11::mp_identity; in main()
22 using qt_identity = mp_quote<mp_identity>; in main()
24 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_eval_if_not<std::false_type, char[], mp_identity, void, voi… in main()
25 …T_TRUE((std::is_same<mp_eval_if_not<std::true_type, char[], mp_identity, void()>, mp_identity<void… in main()
28 …std::is_same<mp_eval_if_not_q<std::true_type, char[], qt_identity, void()>, mp_identity<void()>>)); in main()
32 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_eval_if_not<mp_int<0>, char[], mp_identity, void, void, voi… in main()
33 …TRAIT_TRUE((std::is_same<mp_eval_if_not<mp_int<-7>, char[], mp_identity, void()>, mp_identity<void… in main()
36 …UE((std::is_same<mp_eval_if_not_q<mp_int<-7>, char[], qt_identity, void()>, mp_identity<void()>>)); in main()
40 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_eval_if_not<mp_size_t<0>, char[], mp_identity, void, void, … in main()
41 …IT_TRUE((std::is_same<mp_eval_if_not<mp_size_t<14>, char[], mp_identity, void()>, mp_identity<void… in main()
[all …]
Dmp_eval_or.cpp29 using boost::mp11::mp_identity; in main()
32 BOOST_TEST_TRAIT_SAME(mp_eval_or<void, mp_identity>, void); in main()
33 BOOST_TEST_TRAIT_SAME(mp_eval_or<void, mp_identity, int>, mp_identity<int>); in main()
34 BOOST_TEST_TRAIT_SAME(mp_eval_or<void, mp_identity, int, int>, void); in main()
36 using Q_identity = mp_quote<mp_identity>; in main()
39 BOOST_TEST_TRAIT_SAME(mp_eval_or_q<void, Q_identity, int>, mp_identity<int>); in main()
Dmp_identity.cpp18 using boost::mp11::mp_identity; in main()
20 …BOOST_TEST_TRAIT_TRUE((std::is_same<mp_identity<void const volatile>::type, void const volatile>)); in main()
21 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_identity<void()>::type, void()>)); in main()
22 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_identity<int const[]>::type, int const[]>)); in main()
23 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_identity<X>::type, X>)); in main()
Dmp_valid.cpp38 using boost::mp11::mp_identity; 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()
Dmp_invoke_q_sf.cpp19 using boost::mp11::mp_identity;
35 using Qt = mp_quote_trait<mp_identity>; in main()
Dmp_quote_trait.cpp17 using boost::mp11::mp_identity; in main()
22 using Q = mp_quote_trait<mp_identity>; in main()
Dmp_defer.cpp16 using boost::mp11::mp_identity;
22 template<class U> static mp_true f( mp_identity<typename U::type>* );
/third_party/boost/boost/mp11/detail/
Dmp_map_find.hpp26 using U = mp_inherit<mp_identity<T>...>;
28 …template<template<class...> class L, class... U> static mp_identity<L<K, U...>> f( mp_identity<L<K…
29 static mp_identity<void> f( ... );
/third_party/boost/libs/mp11/doc/mp11/
Dutility.adoc16 ## mp_identity<T>
18 template<class T> struct mp_identity
23 `mp_identity` is a simple _transformation type trait_ (as per the C++ standard)
27 .Using mp_identity as a type trait
30 typename mp_if<std::is_reference<T>, mp_identity<T>, std::add_pointer<T>>::type;
33 .Using mp_identity to protect qualifiers and references
42 std::cout << typeid(mp_identity<T>).name() << std::endl;
48 print2<int const&>(); // 'mp_identity<int const &>'
54 template<class T> using mp_identity_t = typename mp_identity<T>::type;
/third_party/boost/boost/parameter/aux_/
Dhas_nested_template_fn.hpp45 ::boost::mp11::mp_identity<U> const volatile*
72 ::boost::mp11::mp_identity<T> const volatile*
/third_party/boost/boost/parameter/aux_/pack/
Dmake_arg_list.hpp150 , ::boost::mp11::mp_identity<UsedArgs>
169 , ::boost::mp11::mp_identity<
259 , ::boost::mp11::mp_identity<ArgumentPack>
367 , ::boost::mp11::mp_identity<
Dmake_parameter_spec_items.hpp83 , ::boost::mp11::mp_identity< ::boost::parameter::void_>
200 , ::boost::mp11::mp_identity< ::boost::parameter::void_>
Dmake_items.hpp29 , ::boost::mp11::mp_identity< ::boost::parameter::void_>
Dmake_deduced_items.hpp29 , ::boost::mp11::mp_identity< ::boost::parameter::void_>
Dpredicate.hpp64 , ::boost::mp11::mp_identity<
Dtag_type.hpp61 , ::boost::mp11::mp_identity<T>
/third_party/boost/boost/parameter/aux_/preprocessor/impl/
Dparenthesized_return_type.hpp30 using type = ::boost::mp11::mp_identity<Arg>;
40 using type = ::boost::mp11::mp_identity<void>;
/third_party/boost/libs/mp11/doc/article/
Dsimple_cxx11_metaprogramming_2.adoc281 `mp_identity`.
283 template<class T> struct mp_identity
295 struct U: mp_identity<T>... {};
296 using type = std::is_base_of<mp_identity<V>, U>;
321 inherit from `mp_identity<T>` indirectly, via an intermediate base class:
332 inherit_second<J, mp_identity<T>>... {};
342 using type = std::is_base_of<mp_identity<V>, U>;
575 struct U: mp_identity<T>... {};
578 static mp_identity<L<K, U...>>
579 f( mp_identity<L<K, U...>>* );
[all …]
/third_party/boost/boost/mp11/
Dset.hpp35 using type = mp_to_bool<std::is_base_of<mp_identity<V>, mp_inherit<mp_identity<T>...> > >;
Dutility.hpp22 template<class T> struct mp_identity struct
28 template<class T> using mp_identity_t = typename mp_identity<T>::type;
Dalgorithm.hpp298 template<class... W> static mp_identity<L<W...>> f( U*..., mp_identity<W>*... );
300 using R = decltype( f( (mp_identity<T>*)0 ... ) );
639 mp_bool<(I == N1)>, mp_identity<T1>,
653 mp_bool<(I == N1)>, mp_identity<T1>,
830 …using type = typename mp_if<P<T1>, mp_identity<mp_size_t<0>>, mp_find_if_impl_2<mp_list<T...>, P>>…
/third_party/boost/boost/histogram/axis/
Dtraits.hpp92 static decltype(auto) visit_impl(mp11::mp_identity<T0>, Visitor&& vis, Variant&& v) { in visit_impl()
97 static decltype(auto) visit_impl(mp11::mp_identity<T0*>, Visitor&& vis, Variant&& v) { in visit_impl()
106 return visit_impl(mp11::mp_identity<T0>{}, std::forward<Visitor>(vis), in visit()
/third_party/boost/boost/parameter/
Dtemplate_keyword.hpp58 , ::boost::mp11::mp_identity
/third_party/boost/boost/gil/extension/toolbox/color_spaces/
Dycbcr.hpp78 typename boost::mp11::mp_identity<T>::type const & lo, in clamp()
79 typename boost::mp11::mp_identity<T>::type const & hi) in clamp()

12