Add support for ref-qualified functions to std::mem_fn
authorJonathan Wakely <jwakely@redhat.com>
Mon, 3 Nov 2014 02:55:32 +0000 (02:55 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 3 Nov 2014 02:55:32 +0000 (02:55 +0000)
commit8d9076969b94fe6ed2a7bb3e19b56f3c2ac9488c
treeae70857bf8288024edfc24fa8e93d3b1962efda8
parent2ba89c141dc4e9fa468f812d617f95da59d8007f
Add support for ref-qualified functions to std::mem_fn

PR libstdc++/57898
* include/std/functional (_Mem_fn_traits_base): New class template.
(_Mem_fn_traits): New class template with specializations for every
combination of cv-qualified and ref-qualified member function.
(_Mem_fn_base): New class template for all pointer to member function
types and partial specialization for pointer to member object types.
(_Mem_fn): Inherit from _Mem_fn_base.
* testsuite/20_util/function_objects/mem_fn/refqual.cc: New.

From-SVN: r217024
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/functional
libstdc++-v3/testsuite/20_util/function_objects/mem_fn/refqual.cc [new file with mode: 0644]