Table of Contents
Previous Section Next Section

reinterpret_cast

The reinterpret_cast operator changes one type into a fundamentally different type. For example, it can be used to change a pointer into an integer. It has this general form:

reinterpret_cast<type> (expr)

A reinterpret_cast should be used for casting inherently incompatible pointer types.


Table of Contents
Previous Section Next Section