C++ vs. Operator

by bluemedora_editor on December 22, 2011

One can access C++ data members and functions using the dot (.) operator for locally created objects. To access objects on the free store, one must dereference the pointer and call the dot operator on the object pointed to by the pointer. One could access the doSomething member function as follows: (*pObject).doSomething(); Parentheses are used to assure thatpObject is deferenced before doSomething is accessed. Because this is cumbersome, C++ provides a shorthand operator for indirect access: the points-to operator (->), which is created by typing the dash (-) immediately followed by the greater-than symbol (>). C++ treats this as a single symbol. Using the points-to notation, one could access thedoSomething member function as follows:pObject->doSomething();reference: http://www.cplusplus.com/doc/tutorial/structures/

Get started

Try BindPlane for free. No credit card required.

Sign up
True Visibility
BindPlane for VMware vRealize Operations

True Visibility allows cloud management teams to use VMware vRealize’s powerful machine learning and capacity planning engine across their entire hybrid cloud environment.

Azure Monitor...everything
BindPlane for Microsoft Azure Monitor

Make Azure Monitor your first-pane-of-glass across your entire multi-cloud, multi-database or hybrid platform environment.

Thank you for contacting us. Your information was received. We'll be in touch shortly.