The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
TaggedAlgebraic.opUnary
taggedalgebraic
taggedalgebraic
TaggedAlgebraic
Enables the use of unary operators with the stored value.
struct
TaggedAlgebraic
(U)
ref
auto ref
opUnary
(
string
op
this
TA
)
(
)
if
(
hasOp
!(
TA
,
OpKind.unary
,
op
)
)
if
(
is
(
U
== union) ||
is
(
U
== struct)
||
is
(
U
== enum)
)
Meta
Source
See Implementation
taggedalgebraic
taggedalgebraic
TaggedAlgebraic
aliases
Kind
Type
Union
UnionType
functions
opBinary
opBinaryRight
opCall
opCast
opCmp
opEquals
opIndex
opIndexAssign
opOpAssign
opUnary
toString
properties
kind
templates
opDispatch
Enables the use of unary operators with the stored value.