boilerplate ~master (2021-05-11T08:52:50Z)
Dub
Repo
getUDADefaultOrNothing
boilerplate
constructor
Undocumented in source.
template
getUDADefaultOrNothing (
T
attributes
...
) {
public
import
boilerplate
.
util
:
udaIndex
;
;
template
EnumTest
()
;
static if
(
udaIndex!(This.Default, attributes) == -1
)
enum
getUDADefaultOrNothing
;
static if
(!(
udaIndex!(This.Default, attributes) == -1
))
static if
(
__traits(isSame, attributes[udaIndex!(This.Default, attributes)], This.Default)
)
enum
getUDADefaultOrNothing
;
static if
(!(
udaIndex!(This.Default, attributes) == -1
))
static if
(!(
__traits(isSame, attributes[udaIndex!(This.Default, attributes)], This.Default)
))
static if
(
__traits(compiles, EnumTest!())
)
enum
getUDADefaultOrNothing
;
static if
(!(
udaIndex!(This.Default, attributes) == -1
))
static if
(!(
__traits(isSame, attributes[udaIndex!(This.Default, attributes)], This.Default)
))
static if
(!(
__traits(compiles, EnumTest!())
))
static
auto
getUDADefaultOrNothing
[@property getter];
}
Public Imports
boilerplate.util
public
import
boilerplate
.
util
:
udaIndex
;
Members
Manifest constants
getUDADefaultOrNothing
enum
getUDADefaultOrNothing
;
Undocumented in source.
getUDADefaultOrNothing
enum
getUDADefaultOrNothing
;
Undocumented in source.
getUDADefaultOrNothing
enum
getUDADefaultOrNothing
;
Undocumented in source.
Properties
getUDADefaultOrNothing
auto
getUDADefaultOrNothing
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Templates
EnumTest
template
EnumTest
()
Undocumented in source.
Meta
Source
See Implementation
boilerplate
constructor
enums
GetMemberTypeAsString_
GetSuperTypeAsString_
MemberAttributes_
MemberDefault_
MemberUseDefault_
SuperAttributes_
SuperDefault_
SuperUseDefault_
ThisEnum
functions
filterCanFind
mapFormat
mixin templates
GenerateThisTemplate
structs
S
T
This
templates
ConstructorField
getUDADefaultOrNothing
saveConstructorInfo
variables
GenerateThis