12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef BOOST_HANA_FWD_AT_KEY_HPP
- #define BOOST_HANA_FWD_AT_KEY_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- BOOST_HANA_NAMESPACE_BEGIN
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto at_key = [](auto&& xs, auto const& key) -> decltype(auto) {
- return tag-dispatched;
- };
- #else
- template <typename S, typename = void>
- struct at_key_impl : at_key_impl<S, when<true>> { };
- struct at_key_t {
- template <typename Xs, typename Key>
- constexpr decltype(auto) operator()(Xs&& xs, Key const& key) const;
- };
- constexpr at_key_t at_key{};
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|