P3780R0 — Detecting bitwise trivially relocatable types
Giuseppe D'Angelo
EWGLEWG
We propose a new type trait that detects whether a type can be trivially relocated, and such trivial relocation does not alter any part of the object representation. This trait has direct use cases when creating types that use byte buffers to manage objects, such as certain implementations of `optional`, `inplace_vector`, `any`, `function` and similar.