File indexing completed on 2025-12-15 09:53:03
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef BOOST_HANA_FWD_AND_HPP
0011 #define BOOST_HANA_FWD_AND_HPP
0012
0013 #include <boost/hana/config.hpp>
0014 #include <boost/hana/core/when.hpp>
0015
0016
0017 namespace boost { namespace hana {
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 #ifdef BOOST_HANA_DOXYGEN_INVOKED
0034 constexpr auto and_ = [](auto&& x, auto&& ...y) -> decltype(auto) {
0035 return tag-dispatched;
0036 };
0037 #else
0038 template <typename L, typename = void>
0039 struct and_impl : and_impl<L, when<true>> { };
0040
0041 struct and_t {
0042 template <typename X, typename Y>
0043 constexpr decltype(auto) operator()(X&& x, Y&& y) const;
0044
0045 template <typename X, typename ...Y>
0046 constexpr decltype(auto) operator()(X&& x, Y&& ...y) const;
0047 };
0048
0049 BOOST_HANA_INLINE_VARIABLE constexpr and_t and_{};
0050 #endif
0051 }}
0052
0053 #endif