tanya ~master (2021-06-04T07:37:50Z)
Dub
Repo
templateOr.templateOr
tanya
meta
metafunction
templateOr
Undocumented in source.
template
templateOr
(Preds...)
template
templateOr (
T
...
) {
static if
(
Preds.length == 0
)
enum
bool
templateOr
;
static if
(!(
Preds.length == 0
))
static if
(
Instantiate!(Preds[0], T)
)
enum
bool
templateOr
;
alias
templateOr
=
Instantiate
!(.
templateOr
!(
Preds
[
1
..$]),
T
)
;
}
Members
Aliases
templateOr
alias
templateOr
=
Instantiate
!(.
templateOr
!(
Preds
[
1
..$]),
T
)
Undocumented in source.
Variables
templateOr
enum
bool
templateOr
;
Undocumented in source.
templateOr
enum
bool
templateOr
;
Undocumented in source.
Meta
Source
See Implementation
tanya
meta
metafunction
templateOr
templates
templateOr