The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
Unique.construct
automem
unique
Unique
Factory method so can construct with zero args.
typeof
(
this
)
construct
(Args args)
struct
Unique
(UniqueType, Allocator = typeof(theAllocator()), Flag!"supportGC" supportGC = gcExists ? Flag!"supportGC".yes : Flag!"supportGC".no)
static
static if
(
isGlobal
)
typeof
(this)
construct
(
Args
...
)
(
auto
ref
Args
args
)
if
(
isAllocator
!
Allocator
)
typeof
(
this
)
construct
(Allocator allocator, Args args)
Meta
Source
See Implementation
automem
unique
Unique
constructors
this
destructors
~this
functions
allocator
borrow
opAssign
opCast
release
unique
postblits
this(this)
static functions
construct
Factory method so can construct with zero args.