Files
Marc Rousavy de89a50363 [cxx-interop] Add move operations for boxed Swift values
C++ moves of Swift values that use opaque storage, such as resilient
types and generic types whose layout depends on their arguments,
currently copy the value into a new allocation. Transfer the allocation
instead.

A moved-from wrapper has no allocation, so it needs no extra state. It
can be destroyed, copied, moved or assigned, and a copy of it is empty
too. Accessing its Swift value aborts. Wrappers with an inline layout
still copy when moved.
2026-10-14 15:51:10 +02:00
..