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 &&...) |
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}
|
inlinestatic |
References JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE, and JUCE_END_IGNORE_WARNINGS_GCC_LIKE.
Referenced by juce::detail::JustifiedText::accessTogetherWith(), juce::detail::TemporaryFilesDecorator::handleAsyncUpdate(), juce::ActivityLauncher::onActivityResult(), juce::detail::ScopedContentSharerInterface::runAsync(), and juce::DeviceChangeDetector::timerCallback().
|
inlinestatic |