1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef BOOST_HANA_FWD_COMPARING_HPP
- #define BOOST_HANA_FWD_COMPARING_HPP
- #include <boost/hana/config.hpp>
- BOOST_HANA_NAMESPACE_BEGIN
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto comparing = [](auto&& f) {
- return [perfect-capture](auto&& x, auto&& y) {
- return equal(f(forwarded(x)), f(forwarded(y)));
- };
- };
- #else
- struct comparing_t {
- template <typename F>
- constexpr auto operator()(F&& f) const;
- };
- constexpr comparing_t comparing{};
- #endif
- BOOST_HANA_NAMESPACE_END
- #endif
|