Home
last modified time | relevance | path

Searched refs:mp_apply (Results 1 – 11 of 11) sorted by relevance

/third_party/boost/libs/mp11/test/
Dmp_rename.cpp23 using boost::mp11::mp_apply; in main()
32 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_apply<mp_list, L1>, mp_list<>>)); in main()
33 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_apply<std::tuple, L1>, std::tuple<>>)); in main()
34 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_apply<X, L1>, X<>>)); in main()
35 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_apply<Y, L1>, Y<>>)); in main()
44 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_apply<mp_list, L2>, mp_list<char>>)); in main()
45 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_apply<std::tuple, L2>, std::tuple<char>>)); in main()
46 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_apply<X, L2>, X<char>>)); in main()
47 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_apply<Y, L2>, Y<char>>)); in main()
57 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_apply<mp_list, L3>, mp_list<char, double>>)); in main()
[all …]
Dmp_same.cpp41 using boost::mp11::mp_apply; in main()
46 using R = mp_apply<mp_same, L>; in main()
/third_party/boost/libs/mp11/doc/mp11/
Dlist.adoc268 ## mp_apply<F, L>
270 template<template<class...> class F, class L> using mp_apply = mp_rename<L, F>;
272 `mp_apply<F, L>` applies the metafunction `F` to the contents of the list `L`, that is, `mp_apply<F…
273 (`mp_apply` is the same as `mp_rename` with the arguments reversed.)
275 .Using mp_apply with std::pair
278 using R1 = mp_apply<std::is_same, L1>; // std::is_same<double, long double>
283 template<class Q, class L> using mp_apply_q = mp_apply<Q::template fn, L>;
285 Same as `mp_apply`, but takes a quoted metafunction.
Dutility.adoc260 mp_apply<mp_all, mp_product<mp_invoke_q, LQ, mp_list<T>>>;
266 mp_apply<mp_all, mp_transform_q<mp_bind_back<mp_invoke_q, T>, LQ>>;
272 mp_apply<mp_all, mp_transform<mp_invoke_q, LQ, mp_fill<LQ, T>>>;
Dexamples.adoc214 using inner = mp_apply<mp_append, list3>;
220 using outer = mp_apply<mp_append, list4>;
356 using inner = mp_apply<mp_append, list3>;
362 using outer = mp_apply<mp_append, list4>;
Dalgorithm.adoc36 using R1 = mp_apply<mp_all, mp_transform<std::is_same, L1, L2>>; // mp_true
46 using R1 = mp_apply<mp_all, mp_transform<eq, L1, L2>>; // mp_true
78 using R1 = mp_apply<mp_plus,
/third_party/boost/boost/mp11/
Dlist.hpp204 template<template<class...> class F, class L> using mp_apply = typename detail::mp_rename_impl<L, F… typedef
Dtuple.hpp164 class E = mp_if<mp_apply<mp_same, Z>, mp_front<Z>>,
Dalgorithm.hpp140 template<class T> using _g = mp_apply<F, T>;
188 using _t2 = mp_apply<mp_append, _t1>;
542 template<class L, class L2 = mp_clear<L>> using mp_flatten = mp_apply<mp_append, mp_push_front<mp_t…
/third_party/boost/libs/mp11/doc/article/
Dsimple_cxx11_metaprogramming.adoc292 list `L`. We'll add an alias `mp_apply<F, L>` that calls `mp_rename<L, F>` for
295 template<template<class...> class F, class L> using mp_apply = mp_rename<L, F>;
853 using inner = mp_rename<list3, mp_append>; // or mp_apply<mp_append, list3>
936 using inner = mp_rename<list3, mp_append>; // or mp_apply<mp_append, list3>
/third_party/boost/boost/variant2/
Dvariant.hpp2008 template<class L> using front_if_same = mp11::mp_if<mp11::mp_apply<mp11::mp_same, L>, mp11::mp_fron…