annotate DEPENDENCIES/generic/include/boost/function_equal.hpp @ 133:4acb5d8d80b6
tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author |
Chris Cannam |
date |
Tue, 30 Jul 2019 12:25:44 +0100 |
parents |
2665513ce2d3 |
children |
|
rev |
line source |
Chris@16
|
1 // Copyright Douglas Gregor 2004.
|
Chris@16
|
2 // Copyright 2005 Peter Dimov
|
Chris@16
|
3
|
Chris@16
|
4 // Use, modification and distribution is subject to
|
Chris@16
|
5 // the Boost Software License, Version 1.0.
|
Chris@16
|
6 // (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
7 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
8
|
Chris@16
|
9 // For more information, see http://www.boost.org
|
Chris@16
|
10 #ifndef BOOST_FUNCTION_EQUAL_HPP
|
Chris@16
|
11 #define BOOST_FUNCTION_EQUAL_HPP
|
Chris@16
|
12
|
Chris@16
|
13 namespace boost {
|
Chris@16
|
14
|
Chris@16
|
15 template<typename F, typename G>
|
Chris@16
|
16 bool function_equal_impl(const F& f, const G& g, long)
|
Chris@16
|
17 { return f == g; }
|
Chris@16
|
18
|
Chris@16
|
19 // function_equal_impl needs to be unqualified to pick
|
Chris@16
|
20 // user overloads on two-phase compilers
|
Chris@16
|
21
|
Chris@16
|
22 template<typename F, typename G>
|
Chris@16
|
23 bool function_equal(const F& f, const G& g)
|
Chris@16
|
24 { return function_equal_impl(f, g, 0); }
|
Chris@16
|
25
|
Chris@16
|
26 } // end namespace boost
|
Chris@16
|
27
|
Chris@16
|
28 #endif // BOOST_FUNCTION_EQUAL_HPP
|