C Programming on the IBM PC (C Programmers Reference Guide Series)

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)

Категории