Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| c_casting [2018/02/03 10:19] – [int{c}] rpjday | c_casting [2018/02/04 09:24] (current) – rpjday | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Various forms of casting in C++. | Various forms of casting in C++. | ||
| + | |||
| + | ===== Types of casts ===== | ||
| + | |||
| + | ==== static_cast ==== | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | ==== reinterpret_cast ==== | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | ==== dynamic_cast ==== | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | ==== const_cast ==== | ||
| + | |||
| + | [[http:// | ||
| ===== int{c} ===== | ===== int{c} ===== | ||