| 1 | /*! |
| 2 | @file |
| 3 | Forward declares `boost::hana::intersection`. |
| 4 | |
| 5 | Copyright Louis Dionne 2013-2022 |
| 6 | Distributed under the Boost Software License, Version 1.0. |
| 7 | (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) |
| 8 | */ |
| 9 | |
| 10 | #ifndef BOOST_HANA_FWD_INTERSECTION_HPP |
| 11 | #define BOOST_HANA_FWD_INTERSECTION_HPP |
| 12 | |
| 13 | #include <boost/hana/config.hpp> |
| 14 | #include <boost/hana/core/when.hpp> |
| 15 | |
| 16 | |
| 17 | namespace boost { namespace hana { |
| 18 | // Note: This function is documented per datatype/concept only. |
| 19 | //! @cond |
| 20 | template <typename S, typename = void> |
| 21 | struct intersection_impl : intersection_impl<S, when<true>> { }; |
| 22 | //! @endcond |
| 23 | |
| 24 | struct intersection_t { |
| 25 | template <typename Xs, typename Ys> |
| 26 | constexpr auto operator()(Xs&&, Ys&&) const; |
| 27 | }; |
| 28 | |
| 29 | BOOST_HANA_INLINE_VARIABLE constexpr intersection_t intersection{}; |
| 30 | }} // end namespace boost::hana |
| 31 | |
| 32 | #endif // !BOOST_HANA_FWD_INTERSECTION_HPP |
| 33 | |