isAbstractFunction

Determines whether T is an abstract method.

enum bool isAbstractFunction(alias F);

Return Value

$(D_KEYWORD true) if F is an abstract method, $(D_KEYWORD false) otherwise.

Examples

class A
{
    void func()
    {
    }
}
class B
{
    abstract void func();
}
class C : B
{
    override void func()
    {
    }
}
static assert(!isAbstractFunction!(A.func));
static assert(isAbstractFunction!(B.func));
static assert(!isAbstractFunction!(C.func));

See Also

$(D_PSYMBOL isAbstractClass).

Meta