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.
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!