semitwistdtools ~master (2015-08-17T23:08:05Z)
Home
Dub
Repo
EnsureArray
semitwist
util
reflect
If T isn't an array, returns T[], otherwise returns T as-is.
template
EnsureArray (
T
) {
alias
EnsureArray
=
T
;
alias
EnsureArray
=
T
[]
;
}
Members
Aliases
EnsureArray
alias
EnsureArray
=
T
Undocumented in source.
EnsureArray
alias
EnsureArray
=
T
[]
Undocumented in source.
Meta
Source
See Implementation
semitwist
util
reflect
functions
qualifiedName
manifest constants
useNoThrowSafeToHash
templates
EnsureArray
ExprTypeOf
callableExists
isAllTypes
isAnyArray
isAnyType
isType
nameof
If T isn't an array, returns T[], otherwise returns T as-is.