JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
juce::NullCheckedInvocation Struct Reference

Some helper methods for checking a callable object before invoking with the specified arguments. More...

#include "juce_Functional.h"

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 &&...)
 

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.

@tags{Core}

Definition at line 49 of file juce_Functional.h.

Member Function Documentation

◆ invoke() [1/2]

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

Definition at line 52 of file juce_Functional.h.

◆ invoke() [2/2]

template<typename... Args>
static void juce::NullCheckedInvocation::invoke ( std::nullptr_t  ,
Args &&  ... 
)
static

Definition at line 70 of file juce_Functional.h.


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