//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <functional>
// template<Returnable S, ClassType T>
// mem_fun_t<S,T>
// mem_fun(S (T::*f)());
#include<functional>#include<cassert>structA{chara1(){return5;}shorta2(inti){returnshort(i+1);}inta3()const{return1;}doublea4(unsignedi)const{returni-1;}};intmain(){Aa;assert(std::mem_fun(&A::a1)(&a)==5);}