1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef BOOST_HANA_FWD_MAX_HPP
- #define BOOST_HANA_FWD_MAX_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto max = [](auto&& x, auto&& y) -> decltype(auto) {
- return tag-dispatched;
- };
- #else
- template <typename T, typename U, typename = void>
- struct max_impl : max_impl<T, U, when<true>> { };
- struct max_t {
- template <typename X, typename Y>
- constexpr decltype(auto) operator()(X&& x, Y&& y) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr max_t max{};
- #endif
- }}
- #endif
|