.* and ->* operators
| |
| darkestfright (133) | |
Just a quick Q:
is
1 2
|
obj.*memberVariable
ptr->*memberVariable
|
Equivalent to:
1 2
|
*(obj.memberVariable)
*(ptr->memberVariable)
|
|
|
| firedraco (2606) | |
| No. There is no .* or ->* operator AFAIK. I don't think the top 2 lines would even compile. |
|
| guestgulkan (1280) | |
They are the the pointer to class member dereference operators.
But I think your description/wording is slightly off and should read more like this:
Obj.*PointerToMember
PtrToObj->*PointerToMember |
and I don't think the equivalent idea quite works -
is not the same as
|
|
This topic is archived - New replies not allowed.