boilerplate.util

Undocumented in source.

Members

Enums

DeepConst
eponymoustemplate DeepConst(T)
Undocumented in source.
needToDup
eponymoustemplate needToDup(T)
Undocumented in source.
optionallyRemoveTrailingUnderline
eponymoustemplate optionallyRemoveTrailingUnderline(string name)
Undocumented in source.

Functions

GenNormalMembersCheck
string GenNormalMembersCheck(string[] members, bool includeFunctions)
Undocumented in source. Be warned that the author may not have intended to support it.
GenNormalMembersImpl
string GenNormalMembersImpl(string[] members, bool[] compiles)
Undocumented in source. Be warned that the author may not have intended to support it.
bucketSort
T[] bucketSort(T[] inputArray, size_t delegate(T) rankfn)
Undocumented in source. Be warned that the author may not have intended to support it.
isStatic
string isStatic(string field)
Undocumented in source. Be warned that the author may not have intended to support it.
isUnsafe
string isUnsafe(string field)
Undocumented in source. Be warned that the author may not have intended to support it.
move
void move(T source, T dest)
moveEmplace
void moveEmplace(T source, T dest)

manually reimplement move, moveEmplace because the phobos implementation of moveEmplace is **really, really bad!** it forces a recursive template instantiation over every primitive field in a struct, causing template overflows during compilation.

removeTrailingUnderline
string removeTrailingUnderline(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
reorder
T[] reorder(T[] source, size_t[] newOrder)
Undocumented in source.
sinkWrite
void sinkWrite(void delegate(const(char)[]) sink, bool comma, bool escapeStrings, string fmt, T args)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixin templates

GenNormalMemberTuple
mixintemplate GenNormalMemberTuple(bool includeFunctions = false)

Generate AliasSeq of "normal" members - ie. no templates, no alias, no enum, only fields (and functions if includeFunctions is true).

Structs

Optional
struct Optional(T)
Undocumented in source.

Templates

formatNamed
template formatNamed(string text)
Undocumented in source.
getOverloadLike
template getOverloadLike(Aggregate, string Name, Type)
Undocumented in source.
udaIndex
template udaIndex(alias attr, attributes...)
Undocumented in source.

Meta