copy_on_write<T> |
Copy-on-write semantics allow for an object to be lazily copied - only creating a copy when 1) the value is modified, and 2) there is more than one reference to the value.
copy_on_write
is thread safe, and supports types that model MoveableType
.