Home
last modified time | relevance | path

Searched refs:mp_if_c (Results 1 – 14 of 14) sorted by relevance

/third_party/boost/libs/mp11/test/
Dmp_if.cpp17 using boost::mp11::mp_if_c; in main()
19 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_if_c<true, char[], void()>, char[]>)); in main()
20 BOOST_TEST_TRAIT_TRUE((std::is_same<mp_if_c<false, char[], void()>, void()>)); in main()
/third_party/boost/libs/mp11/doc/mp11/
Dutility.adoc60 ## mp_if_c<C, T, E...>
62 template<bool C, class T, class... E> using mp_if_c = /*...*/;
64 `mp_if_c<true, T, E...>` is an alias for `T`. `mp_if_c<false, T, E>` is an alias for `E`. Otherwise…
66 .Using mp_if_c to select between two alternatives
68 using R1 = mp_if_c<true, int, void>; // int
70 using R2 = mp_if_c<false, int, void>; // void
73 .Using mp_if_c to fail substitution when a condition is not met
75 template<class I> using void_if_5 = mp_if_c<I::value == 5, void>;
84 mp_if_c<static_cast<bool>(C::value), T, E...>;
86 Like `mp_if_c`, but the first argument is a type.
/third_party/boost/libs/safe_numerics/test/
Dtest_notepad.hpp4 BOOST_MP11_CONSTEXPR mp_if_c<mp_size<L>::value <= 1024, F> mp_for_each_1( F && f ){ in mp_for_each_1()
8 BOOST_MP11_CONSTEXPR mp_if_c<mp_size<L>::value >= 1025, F> mp_for_each_1( F && f ){
/third_party/boost/boost/mp11/detail/
Dmp_append.hpp161 …using type = mp_if_c<(sizeof...(L) > 111), mp_quote<append_inf_impl>, mp_if_c<(sizeof...(L) > 11),…
170 template<class... L> struct mp_append_impl: mp_if_c<(sizeof...(L) > 111), mp_quote<append_inf_impl>…
/third_party/boost/boost/gil/extension/io/pnm/detail/
Dwrite.hpp115 return mp11::mp_if_c in get_type()
126 return mp11::mp_if_c in get_type()
/third_party/boost/boost/histogram/detail/
Dmutex_base.hpp26 class DetailMutex = mp11::mp_if_c<(Storage::has_threading_support &&
Dcommon_type.hpp42 using common_storage = mp11::mp_if_c<(type_rank<T>() >= type_rank<U>()), T, U>;
Daxes.hpp103 return std::vector<mp_if_c<(mp_size<L>::value == 1), mp_first<L>, L>>{}; in make_empty_dynamic_axes()
/third_party/boost/boost/gil/
Dbit_aligned_pixel_reference.hpp36 using byte_t = mp11::mp_if_c<IsMutable, unsigned char, unsigned char const>;
127 using data_ptr_t = mp11::mp_if_c<IsMutable, unsigned char*, const unsigned char*>;
Dimage_view_factory.hpp374 using reference = mp11::mp_if_c<is_mutable, ref_t, value_type>;
511 using reference = mp11::mp_if_c<is_mutable, ref_t, value_type>;
/third_party/boost/boost/gil/extension/toolbox/image_types/
Dsubchroma_image.hpp48 mp11::mp_if_c
52 mp11::mp_if_c
/third_party/boost/boost/mp11/
Dutility.hpp53 template<bool C, class T, class... E> using mp_if_c = typename detail::mp_if_c_impl<C, T, E...>::ty… typedef
Dalgorithm.hpp357 using type = mp_if_c<(I < mp_size<L>::value), detail::mp_at_c_impl<L, I>, void>;
370 template<class L, std::size_t I> using mp_at_c = typename mp_if_c<(I < mp_size<L>::value), detail::…
1053 template<class L, class F> BOOST_MP11_CONSTEXPR mp_if_c<mp_size<L>::value <= 1024, F> mp_for_each( … in mp_for_each()
1058 template<class L, class F> BOOST_MP11_CONSTEXPR mp_if_c<mp_size<L>::value >= 1025, F> mp_for_each( …
/third_party/boost/libs/mp11/doc/article/
Dsimple_cxx11_metaprogramming_2.adoc73 using mp_if_c = typename mp_if_c_impl<C, T, E>::type;