123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef BOOST_HANA_FWD_DROP_BACK_HPP
- #define BOOST_HANA_FWD_DROP_BACK_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto drop_back = [](auto&& xs[, auto const& n]) {
- return tag-dispatched;
- };
- #else
- template <typename S, typename = void>
- struct drop_back_impl : drop_back_impl<S, when<true>> { };
- struct drop_back_t {
- template <typename Xs, typename N>
- constexpr auto operator()(Xs&& xs, N const& n) const;
- template <typename Xs>
- constexpr auto operator()(Xs&& xs) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr drop_back_t drop_back{};
- #endif
- }}
- #endif
|