摘要:
C++提供了reinterpret_cast用于任意类型的转换,即reinterpret_cast运算符允许将任意指针转换到其他指针类型,也允许做任意整数类型和任意指针类型之间的转换。转换时,执行的是逐个比特复制的操作。reinterpret中文意为“重新解释; 重新诠释;”。 (1)它用于将某种数 阅读全文
posted @ 2023-03-28 21:15 Clemens 阅读(201) 评论(0) 推荐(0) 编辑
|
||
摘要:
C++提供了reinterpret_cast用于任意类型的转换,即reinterpret_cast运算符允许将任意指针转换到其他指针类型,也允许做任意整数类型和任意指针类型之间的转换。转换时,执行的是逐个比特复制的操作。reinterpret中文意为“重新解释; 重新诠释;”。 (1)它用于将某种数 阅读全文
posted @ 2023-03-28 21:15 Clemens 阅读(201) 评论(0) 推荐(0) 编辑 |
||