请输入您要查询的俚语:

 

俚语 t* const this
释义

T* const this

The hidden *this pointer that's present in every member function of a class (at least, in C++).
class Something
{

int a,b;
public:

Something(int a, int b): this->a(a), this->b(b)

{}

void doSomething() {} // is translated into "void doSomething(Something* const this) {}"

// The T in "T* const this" is replaced with the class type

friend void doSomething2() {} // is not translated, as it is NOT a member function
};
void doSomething2() {}
随便看

 

英语俚语辞典收录了3210630条英语俚语在线翻译词条,基本涵盖了全部常用英语俚语的翻译及用法,是英语学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2024/11/10 16:28:55