Contents

SushiEngine::Core::InlineFunction< Result(Arguments...), Capacity >

InlineFunction

template <typename Callable>
InlineFunction(Callable &&callable)

Parameters

NameTypeDescription
callableCallable &&

Callable whose decayed type's size and alignment fit Capacity and alignof(std::max_align_t), checked by static_assert against the callable's size.

Description

Move-constructs callable into inline storage; never allocates.

InlineFunction(const InlineFunction &)=delete

Parameters

NameType
const InlineFunction &
InlineFunction(InlineFunction &&other) noexcept

Parameters

NameType
otherInlineFunction &&

Description

Relocates other's callable into this instance's storage and empties other.