Loading...
Searching...
No Matches
juce::NullCheckedInvocation Struct Reference

Detailed Description

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.


The documentation for this struct was generated from the following file:

Static Public Member Functions

template<typename Callable, typename... Args>
static void invoke (Callable &&fn, Args &&... args)
template<typename... Args>
static void invoke (std::nullptr_t, Args &&...)

Member Functions

◆ invoke() [1/2]

template<typename Callable, typename... Args>
void juce::NullCheckedInvocation::invoke ( Callable && fn,
Args &&... args )
inlinestatic

◆ invoke() [2/2]

template<typename... Args>
void juce::NullCheckedInvocation::invoke ( std::nullptr_t ,
Args && ... )
inlinestatic
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram