Table of Contents
Previous Section Next Section

static_cast

The static_cast operator performs a nonpolymorphic cast. For example, it can be used to cast a base class pointer into a derived class pointer. It can also be used for any standard conversion. No runtime checks are performed. It has this general form:

static_cast<type> (expr)


Table of Contents
Previous Section Next Section