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_unary_function
12 // UNSUPPORTED: c++98, c++03, c++11, c++14
15 #include <type_traits>
18 #include "test_macros.h"
20 double unary_f(int i) {return 0.5 - i;}
24 typedef std::pointer_to_unary_function<int, double> F;