Some helper methods for checking a callable object before invoking with the specified arguments.
More...
|
template<typename Callable , typename... Args, std::enable_if_t< detail::shouldCheckAgainstNullptr< Callable >, int > = 0> |
static void | invoke (Callable &&fn, Args &&... args) |
|
template<typename Callable , typename... Args, std::enable_if_t<! detail::shouldCheckAgainstNullptr< Callable >, int > = 0> |
static void | invoke (Callable &&fn, Args &&... args) |
|
template<typename... Args> |
static void | invoke (std::nullptr_t, Args &&...) |
|
Some helper methods for checking a callable object before invoking with the specified arguments.
If the object provides a comparison operator for nullptr it will check before calling. For other objects it will just invoke the function call operator.