RAD Studio |  |

__has_virtual_destructor
See Also
Collapse All

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

C++0x Features (C++Builder 2009)

Type Trait Functions Overview

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!