epoc32/include/stdapis/boost/function_equal.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
//  Copyright Douglas Gregor 2004.
williamr@2
     2
//  Copyright 2005 Peter Dimov
williamr@2
     3
williamr@2
     4
//  Use, modification and distribution is subject to
williamr@2
     5
//  the Boost Software License, Version 1.0.
williamr@2
     6
//  (See accompanying file LICENSE_1_0.txt or copy at
williamr@2
     7
//  http://www.boost.org/LICENSE_1_0.txt)
williamr@2
     8
williamr@2
     9
// For more information, see http://www.boost.org
williamr@2
    10
#ifndef BOOST_FUNCTION_EQUAL_HPP
williamr@2
    11
#define BOOST_FUNCTION_EQUAL_HPP
williamr@2
    12
williamr@2
    13
namespace boost {
williamr@2
    14
williamr@2
    15
template<typename F, typename G>
williamr@2
    16
  bool function_equal_impl(const F& f, const G& g, long)
williamr@2
    17
  { return f == g; }
williamr@2
    18
williamr@2
    19
// function_equal_impl needs to be unqualified to pick
williamr@2
    20
// user overloads on two-phase compilers
williamr@2
    21
williamr@2
    22
template<typename F, typename G>
williamr@2
    23
  bool function_equal(const F& f, const G& g)
williamr@2
    24
  { return function_equal_impl(f, g, 0); }
williamr@2
    25
williamr@2
    26
} // end namespace boost
williamr@2
    27
williamr@2
    28
#endif // BOOST_FUNCTION_EQUAL_HPP