Is there something like C++’s placement new in Swift? Or an “unsafe” assignment operator?
Trying to use Array.init(unsafeUninitializedCapacity:, initializingWith:) but it tries to deinit the un-initialized memory before assigning a value when used with classes.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!