12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #ifndef BOOST_HANA_FWD_REMOVE_AT_HPP
- #define BOOST_HANA_FWD_REMOVE_AT_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 remove_at = [](auto&& xs, auto const& n) {
- return tag-dispatched;
- };
- #else
- template <typename S, typename = void>
- struct remove_at_impl : remove_at_impl<S, when<true>> { };
- struct remove_at_t {
- template <typename Xs, typename N>
- constexpr auto operator()(Xs&& xs, N const& n) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr remove_at_t remove_at{};
- #endif
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- template <std::size_t n>
- constexpr auto remove_at_c = [](auto&& xs) {
- return hana::remove_at(forwarded(xs), hana::size_c<n>);
- };
- #else
- template <std::size_t n>
- struct remove_at_c_t;
- template <std::size_t n>
- BOOST_HANA_INLINE_VARIABLE constexpr remove_at_c_t<n> remove_at_c{};
- #endif
- }}
- #endif
|