12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #ifndef BOOST_HANA_FWD_REMOVE_RANGE_HPP
- #define BOOST_HANA_FWD_REMOVE_RANGE_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- #include <cstddef>
- BOOST_HANA_NAMESPACE_BEGIN
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto remove_range = [](auto&& xs, auto const& from, auto const& to) {
- return tag-dispatched;
- };
- #else
- template <typename S, typename = void>
- struct remove_range_impl : remove_range_impl<S, when<true>> { };
- struct remove_range_t {
- template <typename Xs, typename From, typename To>
- constexpr auto operator()(Xs&& xs, From const& from, To const& to) const;
- };
- constexpr remove_range_t remove_range{};
- #endif
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- template <std::size_t from, std::size_t to>
- constexpr auto remove_range_c = [](auto&& xs) {
- return hana::remove_range(forwarded(xs), hana::size_c<from>, hana::size_c<to>);
- };
- #else
- template <std::size_t from, std::size_t to>
- struct remove_range_c_t;
- template <std::size_t from, std::size_t to>
- constexpr remove_range_c_t<from, to> remove_range_c{};
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|