123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- #ifndef BOOST_HANA_FWD_TUPLE_HPP
- #define BOOST_HANA_FWD_TUPLE_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/fwd/core/make.hpp>
- #include <boost/hana/fwd/core/to.hpp>
- #include <boost/hana/fwd/integral_constant.hpp>
- #include <boost/hana/fwd/type.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- template <typename ...Xn>
- struct tuple {
-
-
- constexpr tuple();
-
-
-
-
-
-
-
-
- constexpr tuple(Xn const& ...xn);
-
-
-
-
-
-
-
-
-
- template <typename ...Yn>
- constexpr tuple(Yn&& ...yn);
-
-
-
- template <typename ...Yn>
- constexpr tuple(tuple<Yn...> const& other);
-
-
-
- template <typename ...Yn>
- constexpr tuple(tuple<Yn...>&& other);
-
-
-
- template <typename ...Yn>
- constexpr tuple& operator=(tuple<Yn...> const& other);
-
-
-
- template <typename ...Yn>
- constexpr tuple& operator=(tuple<Yn...>&& other);
-
- template <typename ...T, typename F>
- friend constexpr auto operator|(tuple<T...>, F);
-
- template <typename X, typename Y>
- friend constexpr auto operator==(X&& x, Y&& y);
-
- template <typename X, typename Y>
- friend constexpr auto operator!=(X&& x, Y&& y);
-
- template <typename X, typename Y>
- friend constexpr auto operator<(X&& x, Y&& y);
- //! Equivalent to `hana::greater`
- template <typename X, typename Y>
- friend constexpr auto operator>(X&& x, Y&& y);
-
- template <typename X, typename Y>
- friend constexpr auto operator<=(X&& x, Y&& y);
- //! Equivalent to `hana::greater_equal`
- template <typename X, typename Y>
- friend constexpr auto operator>=(X&& x, Y&& y);
-
- template <typename N>
- constexpr decltype(auto) operator[](N&& n);
- };
- #else
- template <typename ...Xn>
- struct tuple;
- #endif
-
-
- struct tuple_tag { };
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
-
-
-
-
-
-
-
-
-
-
-
-
- template <>
- constexpr auto make<tuple_tag> = [](auto&& ...xs) {
- return tuple<std::decay_t<decltype(xs)>...>{forwarded(xs)...};
- };
- #endif
-
-
- BOOST_HANA_INLINE_VARIABLE constexpr auto make_tuple = make<tuple_tag>;
-
-
- BOOST_HANA_INLINE_VARIABLE constexpr auto to_tuple = to<tuple_tag>;
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- template <typename ...T>
- constexpr implementation_defined tuple_t{};
- #else
- template <typename ...T>
- BOOST_HANA_INLINE_VARIABLE constexpr hana::tuple<hana::type<T>...> tuple_t{};
- #endif
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- template <typename T, T ...v>
- constexpr implementation_defined tuple_c{};
- #else
- template <typename T, T ...v>
- BOOST_HANA_INLINE_VARIABLE constexpr hana::tuple<hana::integral_constant<T, v>...> tuple_c{};
- #endif
- }}
- #endif
|