//===----------------------------------------------------------------------===//
//
// 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, CopyConstructible A>
// mem_fun1_t<S,T,A>
// mem_fun(S (T::*f)(A));
#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::a2)(&a,5)==6);}