C++ examples for Data Type:Cast
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_cast | To cast to a different meaning. |
dynamic_cast | For type-safe downcasting. |