erase_key.hpp 876 B

1234567891011121314151617181920212223242526272829303132
  1. /*!
  2. @file
  3. Forward declares `boost::hana::erase_key`.
  4. @copyright Louis Dionne 2013-2017
  5. Distributed under the Boost Software License, Version 1.0.
  6. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
  7. */
  8. #ifndef BOOST_HANA_FWD_ERASE_KEY_HPP
  9. #define BOOST_HANA_FWD_ERASE_KEY_HPP
  10. #include <boost/hana/config.hpp>
  11. #include <boost/hana/core/when.hpp>
  12. BOOST_HANA_NAMESPACE_BEGIN
  13. // Note: This function is documented per datatype/concept only.
  14. //! @cond
  15. template <typename T, typename = void>
  16. struct erase_key_impl : erase_key_impl<T, when<true>> { };
  17. //! @endcond
  18. struct erase_key_t {
  19. template <typename Set, typename ...Args>
  20. constexpr decltype(auto) operator()(Set&& set, Args&& ...args) const;
  21. };
  22. constexpr erase_key_t erase_key{};
  23. BOOST_HANA_NAMESPACE_END
  24. #endif // !BOOST_HANA_FWD_ERASE_KEY_HPP