1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #ifndef BOOST_HANA_FWD_AT_HPP
- #define BOOST_HANA_FWD_AT_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 at = [](auto&& xs, auto const& n) -> decltype(auto) {
- return tag-dispatched;
- };
- #else
- template <typename It, typename = void>
- struct at_impl : at_impl<It, when<true>> { };
- struct at_t {
- template <typename Xs, typename N>
- constexpr decltype(auto) operator()(Xs&& xs, N const& n) const;
- };
- constexpr at_t at{};
- #endif
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- template <std::size_t n>
- constexpr auto at_c = [](auto&& xs) {
- return hana::at(forwarded(xs), hana::size_c<n>);
- };
- #else
- template <std::size_t n, typename Xs>
- constexpr decltype(auto) at_c(Xs&& xs);
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|