flod.meta

Various metaprogramming helpers.

Members

Functions

moveIfNonCopyable
auto moveIfNonCopyable(T t)

Forwards to std.algorithm.move iff t is non-copyable.

Mixin templates

NonCopyable
mixintemplate NonCopyable()

Mix it in inside a struct definition to make the struct non-copyable.

Structs

Id
struct Id(X...)

Used to compare alias lists.

Templates

ReplaceWithMask
template ReplaceWithMask(ulong mask, ReplacementForZeros, Types...)
isCopyable
template isCopyable(T)

Evaluates to true iff instances of T can be copied.

isType
template isType(alias T, A...)

Tests if template S can be instantiated with argument list A and the instantiation is a type. Workaround for https://issues.dlang.org/show_bug.cgi?id=15623

str
template str(W...)
tupleFromArray
template tupleFromArray(T, T[] arr)
Undocumented in source.

Meta

License

BSL-1.0.