英特尔指令集引用中提到的唯一区别是使用overflow-flag而不是进位标志.什么时候使用ADOX而不是ADCX执行带有进位的无符号加法?
就像this指针用于将指针传递给当前对象一样,如何传递对当前对象的引用?
class UseMe
{
public:
UseMe_funcReference(base&);
UseMe_FuncPointer(base *)
}
class base{
..........
}
class Abc:public base
{
public:
friend UseMe;
UseMe innerObj;
Func1()
{
(this->innerObj).UseMe_funcPointer(this); // This passes pointer to current object
(this->innerObj).UseMe_funcReference(HOW_TO_PASS_REFERENCE_TO_CURRENT_OBJECT);
}
}
Run Code Online (Sandbox Code Playgroud)