I stumble across my programming books, this reminded me that I have saved one particular book that showed how the STL works behind the scenes when using the member access operator (. or ->), it was something like this
1 2 3 4 5 6 7 8 9 10 11 | class A { public: void foo(float value) { /*something cool with the value */ } }; int main() { A theA; A::foo(theA, 10.f); } |
but I forgot about this particular book!
I am pretty sure there was a *this* keyword involved in that call.
Or maybe you can point me to the right STL file that handles those operators, then I can take a look myself.
Maybe another handmade hero can elaborate about this, and possibly know about that C++ book am talking about.
Kind regards