flod.meta

Various metaprogramming helpers.

Members

Functions

moveIfNonCopyable
auto moveIfNonCopyable(auto ref T t)

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

Mixin templates

NonCopyable
mixin template 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

repeat
template repeat(int id, string s)
str
template str(W...)

Meta