1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef BOOST_HANA_FWD_OR_HPP
- #define BOOST_HANA_FWD_OR_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- BOOST_HANA_NAMESPACE_BEGIN
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto or_ = [](auto&& x, auto&& ...y) -> decltype(auto) {
- return tag-dispatched;
- };
- #else
- template <typename L, typename = void>
- struct or_impl : or_impl<L, when<true>> { };
- struct or_t {
- template <typename X, typename Y>
- constexpr decltype(auto) operator()(X&& x, Y&& y) const;
- template <typename X, typename ...Y>
- constexpr decltype(auto) operator()(X&& x, Y&& ...y) const;
- };
- constexpr or_t or_{};
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|