123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- #ifndef BOOST_HANA_FWD_SLICE_HPP
- #define BOOST_HANA_FWD_SLICE_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- #include <cstddef>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto slice = [](auto&& xs, auto&& indices) {
- return tag-dispatched;
- };
- #else
- template <typename S, typename = void>
- struct slice_impl : slice_impl<S, when<true>> { };
- struct slice_t {
- template <typename Xs, typename Indices>
- constexpr auto operator()(Xs&& xs, Indices&& indices) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr slice_t slice{};
- #endif
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- template <std::size_t from, std::size_t to>
- constexpr auto slice_c = [](auto&& xs) {
- return hana::slice(forwarded(xs), hana::range_c<std::size_t, from, to>);
- };
- #else
- template <std::size_t from, std::size_t to>
- struct slice_c_t;
- template <std::size_t from, std::size_t to>
- BOOST_HANA_INLINE_VARIABLE constexpr slice_c_t<from, to> slice_c{};
- #endif
- }}
- #endif
|