hasLvalueElements

その行列の要素がstd.algorithm.swapを呼べるかどうかをチェックします

template hasLvalueElements (
A
) if (
isMatrix!A ||
isAbstractMatrix!A
) {}

Members

Manifest constants

hasLvalueElements
enum hasLvalueElements;
Undocumented in source.

Examples

static struct M
{
    enum rows = 1;
    enum cols = 1;

    ref int opIndex(size_t i, size_t j) inout
    {
        static int a;
        return a;
    }

    alias at = opIndex;
}

static assert(hasLvalueElements!(M));

Meta