1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef BOOST_HANA_FWD_POWER_HPP
- #define BOOST_HANA_FWD_POWER_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- BOOST_HANA_NAMESPACE_BEGIN
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto power = [](auto&& x, auto const& n) -> decltype(auto) {
- return tag-dispatched;
- };
- #else
- template <typename R, typename = void>
- struct power_impl : power_impl<R, when<true>> { };
- struct power_t {
- template <typename X, typename N>
- constexpr decltype(auto) operator()(X&& x, N const& n) const;
- };
- constexpr power_t power{};
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|