__has_virtual_destructor

From RAD Studio
Jump to: navigation, search

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


Category

Type Trait Functions

Syntax

bool __has_virtual_destructor (typename T )

Returns true if and only if T is a class type and the destructor is declared virtual.

Error if T is an incomplete type.

Derived classes have a virtual destructor if the a base class destructor is declared virtual, even if not explicitly declared as virtual in the derived class.

See Also