1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 // pointer_to_binary_function
12 // UNSUPPORTED: c++98, c++03, c++11, c++14
15 #include <type_traits>
18 #include "test_macros.h"
20 double binary_f(int i, short j) {return i - j + .75;}
24 typedef std::pointer_to_binary_function<int, short, double> F;