![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
A function wrapper akin to std::function that always stores the wrapped invocable internally.
More...
A function wrapper akin to std::function that always stores the wrapped invocable internally.
| Signature | The signature of the function call operator. |
| BufferSize | The size of the internal buffer. It defaults to 4 times the size of a pointer. |
| IsNoexcept | If true , the function will have a noexcept qualified call operator. Otherwise, it will not. |
| Alignment | The alignment of the internal buffer. It defaults to alignof(std::max_align_t) . |
int (int,double) const ) then the function call operator for this class will also be const-qualified. If the signature is not const-qualified, then only non-const objects will be invocable. Alignment cannot be stored, because doing so would place it at an under-aligned address. Such an invocable is rejected by a static_assert. Note that std::is_constructible and std::is_assignable still report true for such an invocable.