Box.swift 233 B

12345678910
  1. /// A simple wrapper used to implement internal mutability.
  2. ///
  3. /// Mostly used by dynamic property wrappers (see ``DynamicProperty``).
  4. final class Box<V> {
  5. var value: V
  6. init(_ value: V) {
  7. self.value = value
  8. }
  9. }