123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- #ifndef BOOST_HANA_FWD_MAXIMUM_HPP
- #define BOOST_HANA_FWD_MAXIMUM_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- #include <boost/hana/detail/nested_by_fwd.hpp>
- BOOST_HANA_NAMESPACE_BEGIN
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto maximum = [](auto&& xs[, auto&& predicate]) -> decltype(auto) {
- return tag-dispatched;
- };
- #else
- template <typename T, typename = void>
- struct maximum_impl : maximum_impl<T, when<true>> { };
- template <typename T, typename = void>
- struct maximum_pred_impl : maximum_pred_impl<T, when<true>> { };
- struct maximum_t : detail::nested_by<maximum_t> {
- template <typename Xs>
- constexpr decltype(auto) operator()(Xs&& xs) const;
- template <typename Xs, typename Predicate>
- constexpr decltype(auto) operator()(Xs&& xs, Predicate&& pred) const;
- };
- constexpr maximum_t maximum{};
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|