有什么用途:
static_cast
dynamic_cast
const_cast
reinterpret_cast
(type)value
type(value)
如何决定在哪些特定情况下使用哪个?
c++ pointers casting c++-faq
我听说该static_cast函数应该优先于C风格或简单的函数式转换.这是真的?为什么?
c++ casting
static_cast和reinterpret_cast似乎都可以很好地将void*转换为另一个指针类型.是否有充分理由支持其他人?
c++ pointers static-cast reinterpret-cast
c++ ×3
casting ×2
pointers ×2
c++-faq ×1
reinterpret-cast ×1
static-cast ×1