isFinalFunction

Determines whether T is a final method.

enum bool isFinalFunction(alias F);

Return Value

$(D_KEYWORD true) if F is a final method, $(D_KEYWORD false) otherwise.

Examples

class A
{
    void virtualFunc()
    {
    }
    final void finalFunc()
    {
    }
}

static assert(isFinalFunction!(A.finalFunc));
static assert(!isFinalFunction!(A.virtualFunc));

See Also

$(D_PSYMBOL isFinalClass).

Meta