Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:54

0001 // Boost.Function library
0002 
0003 #ifndef BOOST_FUNCTION_EPILOGUE_HPP
0004 #define BOOST_FUNCTION_EPILOGUE_HPP
0005 
0006 // Copyright 2023 Peter Dimov
0007 // Distributed under the Boost Software License, Version 1.0.
0008 // https://www.boost.org/LICENSE_1_0.txt
0009 
0010 // Resolve C++20 issue with fn == bind(...)
0011 // https://github.com/boostorg/function/issues/45
0012 
0013 #if !defined(BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX)
0014 
0015 namespace boost
0016 {
0017 
0018 namespace _bi
0019 {
0020 
0021 template<class R, class F, class L> class bind_t;
0022 
0023 } // namespace _bi
0024 
0025 template<class S, class R, class F, class L> bool operator==( function<S> const& f, _bi::bind_t<R, F, L> const& b )
0026 {
0027     return f.contains( b );
0028 }
0029 
0030 template<class S, class R, class F, class L> bool operator!=( function<S> const& f, _bi::bind_t<R, F, L> const& b )
0031 {
0032     return !f.contains( b );
0033 }
0034 
0035 } // namespace boost
0036 
0037 #endif // #if !defined(BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX)
0038 
0039 #endif // #ifndef BOOST_FUNCTION_EPILOGUE_HPP