template<typename A1>
sead::AnyDelegate1 class

Base classes

template<typename Interface, typename AnyClass, size_t StorageSize>
class AnyDelegateImpl<IDelegate1<A1>, AnyDelegate1<A1>, sizeof(Delegate1<detail::DummyClassForDelegate, A1>)>

Public types

class UnbindDummy
using Base = detail::AnyDelegateImpl<IDelegate1<A1>, AnyDelegate1<A1>, sizeof(Delegate1<detail::DummyClassForDelegate, A1>)>

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() -> IDelegate1<A1>*
auto getDelegate() const -> const IDelegate1<A1>*

Protected types

using Interface_ = IDelegate1<A1>

Protected variables

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