The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
VariantN.this
std
variant
VariantN
Allows assignment from a subset algebraic type
this
(T value)
this
(T value)
struct
VariantN
(size_t maxDataSize, AllowedTypesParam...)
this
(
T
:
VariantN
!(
tsize
,
Types
)
size_t
tsize
Types
...
)
(
T
value
)
if
(
!
is
(
T
:
VariantN
) &&
Types.length
> 0
&&
allSatisfy
!(
allowed
,
Types
)
)
Meta
Source
See Implementation
std
variant
VariantN
aliases
AllowedTypes
constructors
this
functions
opApply
opAssign
opBinary
opBinaryRight
opCmp
opEquals
opIndex
opIndexAssign
opIndexOpAssign
opOpAssign
toHash
toString
properties
coerce
convertsTo
get
hasValue
length
peek
type
templates
allowed
Allows assignment from a subset algebraic type