123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef BOOST_HANA_FWD_FRONT_HPP
- #define BOOST_HANA_FWD_FRONT_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- BOOST_HANA_NAMESPACE_BEGIN
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto front = [](auto&& xs) -> decltype(auto) {
- return tag-dispatched;
- };
- #else
- template <typename It, typename = void>
- struct front_impl : front_impl<It, when<true>> { };
- struct front_t {
- template <typename Xs>
- constexpr decltype(auto) operator()(Xs&& xs) const;
- };
- constexpr front_t front{};
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|