opDispatch() and opBinaryRight()
Now, let’s talk about opDispatch() and opBinaryRight() functions.
We'll cover the following...
We'll cover the following...
Catch-all operator opDispatch()
opDispatch gets called whenever a missing member of an object is accessed. All attempts to access non-existent members are dispatched to this function.
The name of the missing member becomes the template parameter value of opDispatch.
The following code demonstrates a simple definition:
There are no compiler errors for the calls to non-existent members. Instead, all of those calls are dispatched ...