请输入您要查询的英文单词:

 

单词 type conversion operator
释义
type conversion operator
  • 简明释义
  • 类型转换算符
  • 网络释义
  • 1

    ?类型转换操作符

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

  • 2

    ?类型转换运算符

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

短语
  • 双语例句
  • 1
    For a type conversion operator, either the operand or the return type must be of the data type of the class or structure.
    对于类型转换运算符,操作数或返回类型必须是类或结构的数据类型。
  • 2
    The implicit conversion operator is defined, which converts a Point type to int.
    隐式转换操作符将 Point 类型转换为 int。
  • 3
    A definition of a conversion operator that returns the type of your class or structure.
    一个转换运算符的定义,返回您的类或结构的类型。
随便看

 

英汉双解词典包含3185865条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2022 Newdu.com All Rights Reserved
更新时间:2025/2/15 6:04:55