go top

type conversion operator

  • 类型转换算符

网络释义

  类型转换操作符

类型转换操作符type conversion operator)是一种特殊的类成员函数,它定义将类类型值转变为其他类型值的转换。

基于58个网页-相关网页

  类型转换运算符

虽然在operator const char*() const 中也是重载()运算符,但是这里的这个()运算符叫类型转换运算符(type conversion operator),而不是一楼所说的函数运算符(call operator)。两个虽然长得一样,可是用法完全不同。

基于8个网页-相关网页

短语

compulsory type conversion operator 强制类型转换运算符

双语例句

  • For a type conversion operator, either the operand or the return type must be of the data type of the class or structure.

    对于类型转换运算符操作返回类型必须或结构数据类型。

    youdao

  • The implicit conversion operator is defined, which converts a Point type to int.

    转换操作符Point 类型转换int

    youdao

  • A definition of a conversion operator that returns the type of your class or structure.

    一个转换运算符定义返回结构类型

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定