phobos ~master (2024-10-03T07:50:27Z)
Dub
Repo
match.match
std
sumtype
match
The actual
match
function.
template
match
(handlers...)
ref
auto ref
match
(
SumTypes
...
)
(
auto
ref
SumTypes
args
)
if
(
allSatisfy
!(
isSumType
,
SumTypes
) &&
args.length
> 0
)
Parameters
args
SumTypes
One or more
SumType
objects.
Meta
Source
See Implementation
std
sumtype
match
functions
match
The actual match function.