util

Some templates I used while developing my rtti module that are not specific to the problem that module is trying to solve.

Authors:
Frits van Bommel

template Array(T,Ts...)
Returns a constant array of T, initialized by the Ts parameters.

template BaseTypeTuple(T)
Returns a tuple consisting of the base class and interfaces of T.

template alignUp(uint Alignment,uint Value)
Returns Value rounded up to a multiple of Alignment, which must be a power of two.

template TypeTupleToString(V...)
Converts a type tuple to a string.

template isAssociativeArray(T)
Returns true if T is an associative array.


Page generated by Ddoc.