next up previous contents index
Next: dump Up: Classdesc Previous: BinStream binary   Contents   Index

isa

isa is an action to determine whether a particular class is derived from another type. To use this, create an isa action in the usual way using classdesc:

classdesc isa <header.h >header.cd
Then isa(e,Y()) will return whether e is of a type derived from type Y.

The functionality of isa is better achieved using the TR1 type traits feature: is_base_of.



Russell Standish 2016-09-02