dutils-data ~master (2020-05-16T00:04:04Z)
Home
Dub
Repo
isPublicMember
dutils
data
utils
traits
Tests if the protection of a member is public.
template
isPublicMember (
T
string
M
) {
import
std
.
algorithm
,
std
.
typetuple
:
TypeTuple
;
;
import
std
.
algorithm
,
std
.
typetuple
:
TypeTuple
;
;
static if
(
!__traits(compiles, TypeTuple!(__traits(getMember, T, M)))
)
enum
isPublicMember
;
alias
MEM
=
TypeTuple
!(
__traits
(
getMember
,
T
,
M
))
;
static if
(!(
!__traits(compiles, TypeTuple!(__traits(getMember, T, M)))
))
static if
(
__traits(compiles, __traits(getProtection, MEM))
)
enum
isPublicMember
;
static if
(!(
!__traits(compiles, TypeTuple!(__traits(getMember, T, M)))
))
static if
(!(
__traits(compiles, __traits(getProtection, MEM))
))
enum
isPublicMember
;
}
Members
Aliases
MEM
alias
MEM
=
TypeTuple
!(
__traits
(
getMember
,
T
,
M
))
Undocumented in source.
Manifest constants
isPublicMember
enum
isPublicMember
;
Undocumented in source.
isPublicMember
enum
isPublicMember
;
Undocumented in source.
isPublicMember
enum
isPublicMember
;
Undocumented in source.
Meta
Source
See Implementation
dutils
data
utils
traits
functions
Tgen
areConvertibleTo
manifest constants
synchronizedIsNothrow
templates
RecursiveFunctionAttributes
StripHeadConst
baseInterface
derivedMethod
isNonStaticMember
isOpApplyDg
isPropertyGetter
isPropertySetter
isPublicMember
isRWField
isRWPlainField
Tests if the protection of a member is public.