mirror ~master (2021-09-30T14:57:21Z)
Dub
Repo
functionsByOverload.symbolsWithIndex
mirror
meta
reflection
functionsByOverload
Undocumented in source.
template
functionsByOverload
(alias parent, publicMembers...)
package
template
symbolsWithIndex (
A
...
) {
import
std
.
range
:
iota
;
;
import
std
.
meta
:
aliasSeqOf
,
staticMap
;
;
template
Result
(alias S, size_t I)
;
alias
toResult
(
size_t
I
)
=
Result
!(
A
[
I
],
I
)
;
alias
symbolsWithIndex
=
staticMap
!(
toResult
,
aliasSeqOf
!(
A
.
length
.
iota
))
;
}
Members
Aliases
symbolsWithIndex
alias
symbolsWithIndex
=
staticMap
!(
toResult
,
aliasSeqOf
!(
A
.
length
.
iota
))
Undocumented in source.
toResult
alias
toResult
(
size_t
I
)
=
Result
!(
A
[
I
],
I
)
Undocumented in source.
Templates
Result
template
Result
(alias S, size_t I)
Undocumented in source.
Meta
Source
See Implementation
mirror
meta
reflection
functionsByOverload
aliases
functionsByOverload
templates
symbolsWithIndex