成员函数 - 翻译成英语

member function
成员函数
a member function
成员函
member functions
成员函数
a member function
成员函
members function
成员函数
a member function
成员函

在 中文 中使用 成员函数 的示例及其翻译为 英语

{-}
  • Political category close
  • Ecclesiastic category close
  • Programming category close
在对你的类型使用std::swap时可能会造成效率低下时,可以提供一个swap成员函数
Provide a swap member function when std::swap would be inefficient for your type.
除容纳数据之外,DataOnly类再也不能做更多的事情,因为它没有成员函数(方法)。
The DataOnly class cannot do much of anything except hold data, because it has no member functions(methods).
六、有其它方法告诉编译器使成员函数成为内联吗??
Is there another way to tell the compiler to make a member function inline?
要读写二进制数据块,使用成员函数read()和write()成员函数,它们原型如下:.
To read and write binary data blocks, use the member function read() and the Write() member functions, which are prototyped as follows.
静态成员函数的地址可以存储在常规的指向函数指针中,但不能存储于指向成员函数指针中。
The address of a static member function may be stored in a regular pointer to function, but not in a pointer to member function.
每一个STL容器都有begin()和end()成员函数返回那个容器的begin和end迭代器。
Each STL container has member functions begin() and end() that return the begin and end iterators for that container.
声明于类体中而无friend说明符的函数是类成员函数
A function that is declared in a class body without a friend specifier is a class member function.
它可以被用来检查传入一个对象的成员函数的参数是否是该对象本身。
It can be used to check if a parameter passed to a member function of an object is the object itself.
从诸如的左值移动a是危险的,因为我们以后可以尝试通过调用成员函数a,调用未定义的行为。
Moving from lvalues such as a is dangerous, because we could later try to call a member function via a, invoking undefined behavior.
因此将代码从友元函数移到成员函数根本就并不减少维护成本。
Thus moving the code from a friend function into a member function does not reduce the maintenance cost at all.
这样,一些客户程序可以使用一组成员函数,而其他客户程序可以使用其他组的成员函数。
Thus some clients use one group of member functions, and other clients use the other groups.
不再需要单独定义成员函数、静态成员、外部声明之类的,也不需要像这样烦人的语法:.
There is no longer a need for a separate definition of member functions, static members, externs, nor for clumsy syntaxes like.
尽管友元函数的原型有在类的定义中出现过,但是友元函数并不是成员函数
Though the prototypes for friend functions appear in the class definition yet friends cannot be included in member functions.
H类的定义中,包含了所有成员函数与变量的声明。
H module, contains declarations of all the member functions and member variables of the class.
批評者認為它不是普通集合论的超集,因为成员函数是依据常规集合而定义的。
Critics also argue that it cannot be a superset of ordinary set theory since membership functions are defined in terms of conventional sets.
在C++中,请确保非静态成员函数的参数不超过三个,因为有隐式的this指针参数,它通常在R0中传递。
In C++, ensure that nonstatic member functions take three or fewer arguments because of the implicit this pointer argument that is usually passed in R0.
在clone()成员函数中,代码newCircle(*this)调用Circle的拷贝构造函数来复制this的状态到新创建的Circle对象。
In the clone() member function, the new Circle(*this) code calls Circle's copy constructor to copy the state of this into the newly created Circle object.
同一作用域中,多个函数可有相同名称,只要其形参列表,以及对于成员函数的cv或引用限定不同即可。
Multiple functions in the same scope may have the same name, as long as their parameter lists and, for member functions, cv/ref qualifications are different.
Inspect()成员函数末尾的const,应当被用来指明,这个函数不会改变该对象的抽象(abstract)(客户代码所看到的)状态。
The trailing const on inspect() member function should be used to mean the method won't change the object's abstract(client-visible) state.
在C++术语中,通常类成员(包括数据成员)是public(除了见下文私有变量),所有成员函数都是virtual。
In C++ terminology, normally class members(including the data members) are public(except see below Private Variables), and all member functions are virtual.
结果: 137, 时间: 0.0202

单词翻译

顶级字典查询

中文 - 英语