__is_class

From RAD Studio
Jump to: navigation, search

Go Up to Type Trait Functions (C++11) Index


Category

Type Trait Functions

Syntax

bool __is_class(typename T)

Returns true if and only if T is a class type, and NOT a union type.

Returns true for classes declared with the class key class or struct.

Returns false for reference/pointer to class type.

Returns true for specialization of a class template.

Ill-formed if called with the name of a template, without specifying the template parameters. A template is not a type; it is a type generator.

See Also