1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // <functional> 11 12 // mem_fun1_t 13 // Removed in c++17 14 // UNSUPPORTED: c++98, c++03, c++11, c++14 15 16 #include <functional> 17 #include <type_traits> 18 #include <cassert> 19 20 #include "test_macros.h" 21 22 struct A 23 { 24 char a1() {return 5;} 25 short a2(int i) {return short(i+1);} 26 int a3() const {return 1;} 27 double a4(unsigned i) const {return i-1;} 28 }; 29 30 int main() 31 { 32 typedef std::mem_fun1_t<short, A, int> F; 33 } 34