1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #ifndef BOOST_HANA_FWD_ZERO_HPP
- #define BOOST_HANA_FWD_ZERO_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- template <typename M>
- constexpr auto zero = []() -> decltype(auto) {
- return tag-dispatched;
- };
- #else
- template <typename M, typename = void>
- struct zero_impl : zero_impl<M, when<true>> { };
- template <typename M>
- struct zero_t {
- constexpr decltype(auto) operator()() const;
- };
- template <typename M>
- BOOST_HANA_INLINE_VARIABLE constexpr zero_t<M> zero{};
- #endif
- }}
- #endif
|