C++ explicit casts - C++ Data Type

C++ examples for Data Type:Cast

Introduction

Standard C++ includes an explicit cast syntax.

Cast Type Description
static_cast well behaved cast
const_cast To cast away const and/or volatile.
reinterpret_castTo cast to a different meaning.
dynamic_cast For type-safe downcasting.

Related Tutorials