Trait to identify if a type is a struct one

pham home at home.com
Wed Oct 18 15:11:53 UTC 2017


Is there a way to identify if a type is a struct, something like 
isStruct
similar to isArray.

struct X
{
}

isStruct!X == true?

Also, there are isAbstractClass & isFinalClass but want to check 
if type is a class regardless? something like isClass?

Thanks
Pham



More information about the Digitalmars-d-learn mailing list