112 std::function<
void()> detach;
A ScopeGuard that uses a std::function internally to allow type erasure.
ErasedScopeGuard()=default
Constructs an ErasedScopeGuard with no callback.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
An easy way to ensure that a function is called at the end of the current scope.