reinterpret_cast翻译
来源:互联网 发布:rocketdock类似软件 编辑:程序博客网 时间:2024/06/15 20:22
Allows any pointer to be converted into any other pointer type.
允许从任何指针类型转换成其他任意指针类型
reinterpret_cast < type-id > ( expression ) |
The reinterpret_cast operator also allows any integral type to be converted into any pointer type and vice versa. Misuse of the reinterpret_cast operator can easily be unsafe. Unless the desired conversion is inherently low-level , you should use one of the other cast operators.
Reinterpret_cast操作符同样可以任何整型转换成任意指针类型,反之亦然。滥用reinterpret_cast操作符是很容易不安全,除非期望的转换是低级的,否则你可以使用其他转换符。
The reinterpret_cast operator can be used for conversions such as char* to int*, or One_class* to Unrelated_class*, which are inherently unsafe.
Reinterpret_cast可以用来从char*到int*或者从one_class*到Unrelated_class*的转换,他们都是不安全的
The result of a reinterpret_cast cannot safely be used for anything other than being cast back to its original type. Other uses are, at best, nonportable.
Reinterpret_cast对任何类型的转换都是不安全的,除了向后转化成他的原始类型,其他的使用,至多是不可以移植的
The reinterpret_cast operator cannot cast away the const, volatile, or __unaligned attributes. See const_cast Operator for information on removing these attributes.
Reinterpret_cast操作符在转化的过程中去掉const,volatile或者__unaligned属性。可以查看const_cast操作符关于去掉这些属性的信息
The reinterpret_cast operator converts a null pointer value to the null pointer value of the destination type.
Reinterpret_cast操作符可以将NULL指针值转换为指定类型的空指针值;
One practical use of reinterpret_cast is in a hash function, which maps a value to an index in such a way that two distinct values rarely end up with the same index.
- reinterpret_cast翻译
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- reinterpret_cast
- TCP/IP 之TCP协议(4):差错控制
- asp.net生成高质量缩略图(VB.net)
- SQL Server 2005对海量数据处理
- c# 多个空格变为一个空格
- javascript 怕自己忘记了 所以记下来(date 格式化)
- reinterpret_cast翻译
- 安装VS2003遇到的问题集
- 获取数据库的sql语句
- sqlplus可以连接,pl/sql 报ORA-12154: TNS:无法解析指定的连接标志符
- oracle数据库触发器例子
- 汇编程序学习小结
- using stl
- ibatis的batch的使用的思考
- js错误处理try..catch使用