Expand description
Helpers which tend to be useful in other libraries as well.
Structs§
- Alloc
Guard - A RAII guard that owns a single allocation and ensures it is deallocated unless explicitly released.
- Slice
Alloc Guard - A RAII guard for a heap‐allocated slice that tracks how many elements have been initialized.
Functions§
- layout_
or_ sz_ align - Gets either a valid layout with space for
n
count ofT
, or a raw size and alignment.