template<typename A1, typename R>
sead::AnyDelegate1R class

Base classes

template<typename Interface, typename AnyClass, size_t StorageSize>
class AnyDelegateImpl<IDelegate1R<A1, R>, AnyDelegate1R<A1, R>, sizeof(Delegate1R<detail::DummyClassForDelegate, A1, R>)>

Public types

class UnbindDummy
using Base = detail::AnyDelegateImpl<IDelegate1R<A1, R>, AnyDelegate1R<A1, R>, sizeof(Delegate1R<detail::DummyClassForDelegate, A1, R>)>

Constructors, destructors, conversion operators

operator bool() const explicit
Checks if a non-dummy function is stored.

Public functions

auto operator()(Args && ... args) -> auto
Calls the stored function.
auto operator()(Args && ... args) const -> auto
Calls the stored function.
auto getDelegate() -> IDelegate1R<A1, R>*
auto getDelegate() const -> const IDelegate1R<A1, R>*

Protected types

using Interface_ = IDelegate1R<A1, R>

Protected variables

std::aligned_storage_t<StorageSize, alignof(IDelegate1R<A1, R>)> mStorage