header_utils
Loading...
Searching...
No Matches
Functional

Additional useful delegates (like std::function<>) More...

Classes

class  ghassanpl::mutlticast_function< R(ARGS...)>
 Like std::function<R(ARGS...)> but can reference multiple invocables, and call them all at once. More...
 

Functions

template<typename... ARGS>
auto ghassanpl::make_single_time_function (std::function< void(ARGS...)> func)
 Returns a function that calls func when invoked, but only the first time.
 
template<typename FUNC >
auto ghassanpl::make_single_time_function (FUNC &&func)
 Returns a function that calls func when invoked, but only the first time.
 

Detailed Description

Additional useful delegates (like std::function<>)

Function Documentation

◆ make_single_time_function() [1/2]

template<typename FUNC >
auto ghassanpl::make_single_time_function ( FUNC &&  func)

Returns a function that calls func when invoked, but only the first time.

Definition at line 146 of file functional.h.

◆ make_single_time_function() [2/2]

template<typename... ARGS>
auto ghassanpl::make_single_time_function ( std::function< void(ARGS...)>  func)

Returns a function that calls func when invoked, but only the first time.

Definition at line 136 of file functional.h.