The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
Unique.opCast
automem
unique
Unique
"Truthiness" cast
struct
Unique
(UniqueType, Allocator = typeof(theAllocator()), Flag!"supportGC" supportGC = gcExists ? Flag!"supportGC".yes : Flag!"supportGC".no)
const
bool
opCast
(
T
)
(
)
if
(
is
(
T
==
bool
)
)
if
(
isAllocator
!
Allocator
)
Meta
Source
See Implementation
automem
unique
Unique
constructors
this
destructors
~this
functions
allocator
borrow
opAssign
opCast
release
unique
postblits
this(this)
static functions
construct
"Truthiness" cast