cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
Classes | Namespaces | Functions
library/functional.hpp File Reference

Classes

struct  noopT_t< T >
 generic no-op functor with return type T. More...
 
struct  equivalent_to< T, Ord >
 Function object that performs equivalence comparison: arguments are "equivalent" if they are not less or greater than each other. Or, alternatively, if neither is less than the other. More...
 
struct  is_std_function< T >
 
struct  constant_function< T >
 

Namespaces

 cxxomfort
 Namespace of the cxxomfort library.
 
 cxxomfort::library
 Supplements to backports and other utilities.
 

Functions

template<typename R >
nullary_function_ptrt< R > ptr_fun (R(*const function)())
 

Function Documentation

◆ ptr_fun()

nullary_function_ptrt<R> cxxomfort::library::functional::ptr_fun ( R(*)()  function)

"Overload" for std::ptr_fun that wrapps nullary functions.

Referenced by cxxomfort::library::functional::ptr_fun().