Ios swift – COW(copt on write) in Swift, Why does cow only work on the collection type?
The cow(copy on write) doesn't work for custom structures and basic data types(except strings), but I'm wondering why. Can I know the relevant reference? I learned that when copying a value called cow, it is a memory-saving technique by sharing…