std::ptr_fun
From cppreference.com
                    
                                        
                    < cpp | utility | functional
                    
                                                            
                    |   template< class Arg, class Result > std::pointer_to_unary_function<Arg,Result>  | 
(1) | (deprecated) | 
|   template< class Arg1, class Arg2, class Result > std::pointer_to_binary_function<Arg1,Arg2,Result>  | 
(2) | (deprecated) | 
Creates a function wrapper object (either std::pointer_to_unary_function or std::pointer_to_binary_function), deducing the target type from the template arguments.
1) Effectively calls {{c|std::pointer_to_unary_function<Arg,Result>(f).
2) Effectively calls {{c|std::pointer_to_binary_function<Arg1,Arg2,Result>(f).
[edit] Parameters
| f | - | pointer to a function to create a wrapper for | 
[edit] Return value
A function object wrapping f.
[edit] Exceptions
(none)