vson ~master (2015-03-22T05:30:36Z)
Dub
Repo
isPublicMember
vson
meta
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)))
))
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.
Meta
Source
See Implementation
vson
meta
traits
functions
Tgen
areConvertibleTo
templates
baseInterface
isNonStaticMember
isOpApplyDg
isPropertyGetter
isPropertySetter
isPublicMember
isRWField
isRWPlainField
Tests if the protection of a member is public.