The OpenD Programming Language

isAbstractFunction

Detect whether S is an abstract function.

See also: __traits(isAbstractFunction, S)

enum isAbstractFunction ()

Parameters

S

The symbol to check

Return Value

A bool

Examples

struct S { void foo() { } }
class C { void foo() { } }
class AC { abstract void foo(); }
static assert(!isAbstractFunction!(int));
static assert(!isAbstractFunction!(S.foo));
static assert(!isAbstractFunction!(C.foo));
static assert( isAbstractFunction!(AC.foo));

Meta