isCppClass

Indicates wether the class passed as template argument has the extern(C++) linkage attribute.

template isCppClass (
T
) if (
is(T == class)
) {
enum isCppClass;
}

Examples

1 class Foo{void bar(){} int a;}
2 static assert(!isCppClass!Foo);
3 
4 extern(C++) class Bar{void bar(){} int a;}
5 static assert(isCppClass!Bar);

Meta