1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef BOOST_HANA_DETAIL_DISPATCH_IF_HPP
- #define BOOST_HANA_DETAIL_DISPATCH_IF_HPP
- #include <boost/hana/config.hpp>
- #include <type_traits>
- namespace boost { namespace hana {
- struct deleted_implementation {
- template <typename ...T>
- static constexpr auto apply(T&& ...) = delete;
- };
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifndef BOOST_HANA_CONFIG_DISABLE_CONCEPT_CHECKS
- #define BOOST_HANA_DISPATCH_IF(IMPL, ...) \
- ::std::conditional_t< \
- (__VA_ARGS__), \
- IMPL, \
- ::boost::hana::deleted_implementation \
- > \
-
- #else
- #define BOOST_HANA_DISPATCH_IF(IMPL, ...) IMPL
- #endif
- }}
- #endif
|