[ fromfile: types.xml id: ansicast ]
ANSI C++ adds four cast operators, with template-style syntax, that more clearly express the intentions of the programmer, and make casts easier to spot in the code.
ANSI typecasts
static_cast<type>(expr)for converting between related types
const_cast<type> exprfor casting away const or volatile
dynamic_cast<type>(expr)for safe navigation through an inheritance hierarchy
reinterpret_cast<type>(expr)for type conversions of pointers, between unrelated types
| Generated: $Date: 2009-09-08 12:15:32 -0400 (Tue, 08 Sep 2009) $ | © 2009 Alan Ezust and Paul Ezust. |