Unique.this

Constructor that takes an rvalue. It will ensure uniqueness, as long as the rvalue isn't just a view on an lvalue (e.g., a cast). Typical usage:

Unique!Foo f = new Foo;
  1. this(RefT p)
    struct Unique(T)
    this
  2. this(RefT p)
  3. this(Unique!U u)

Meta

Suggestion Box / Bug Report