unstandard ~master (2017-05-26T08:42:45Z)
Dub
Repo
Template.Template
unstd
templates
Template
Undocumented in source.
template
Template
(Args...)
template
Template
(alias Pred, int argumentsCount, EnumType = void)
static if
(
isSomeString!(typeof(Pred))
)
template
Template (
Args
...
)
if
(
argumentsCount
== -1 ||
Args
.
length
==
argumentsCount
) {
static if
(
isSomeString!(typeof(Pred))
)
static if
(
argumentsCount >= 1 && argumentsCount <= 2
)
static if
(
__traits(compiles, )
)
enum
a
;
alias
T
=
Args
[
0
]
;
alias
A
=
Args
[
0
]
;
static if
(
isSomeString!(typeof(Pred))
)
static if
(
argumentsCount >= 1 && argumentsCount <= 2
)
static if
(
argumentsCount == 2
)
static if
(
__traits(compiles, )
)
enum
b
;
alias
U
=
Args
[
1
]
;
alias
B
=
Args
[
1
]
;
static if
(
isSomeString!(typeof(Pred))
)
static if
(
is(EnumType == void)
)
static if
(
__traits(compiles, )
)
enum
Template
;
static if
(
isSomeString!(typeof(Pred))
)
static if
(!(
is(EnumType == void)
))
enum
EnumType
Template
;
}
alias
Template
=
Pred
Members
Aliases
A
alias
A
=
Args
[
0
]
Undocumented in source.
B
alias
B
=
Args
[
1
]
Undocumented in source.
T
alias
T
=
Args
[
0
]
Undocumented in source.
U
alias
U
=
Args
[
1
]
Undocumented in source.
Manifest constants
Template
enum
Template
;
Undocumented in source.
a
enum
a
;
Undocumented in source.
b
enum
b
;
Undocumented in source.
Variables
Template
enum
EnumType
Template
;
Undocumented in source.
Meta
Source
See Implementation
unstd
templates
Template
templates
Template