RAD Studio |  |

__is_base_of
See Also
Collapse All

Category

Type Trait Functions

Syntax

bool __is_base_of (typename Base, typename Derived)

Returns true if and only if Base is a base class of Derived.

Error if Derived is an incomplete type and Base is a class-type..

Note: False (but well formed) if either Base or Derived is a union or non-class type, even if the other is an incomplete type.

True if any class in the DAG of base classes for Derived is Base. This includes private, protected, ambiguous or virtual bases so simply return true the first time the search finds a match.

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!