The definition of state_manager_ STD: : from & lt; StateManager> State_manager_;
Did not understand what this add function inside, why use pointer call it again add, like recursion a face of meng,
CodePudding user response:
There is no specific code to do detailed This is a class member function, parameter is feedback Is that since share_ptr - & gt; Is packed in his internal StateManager *, object call AddMoveFeedbackData, parameter is feedback
CodePudding user response:
Two AddMoveFeedbackData same name, the purely grammatical didn't anything to do, packed in design mode, in order not to let you see the internal details.
CodePudding user response:
Inside out with another object, a, b two classes are defined function func (), b is a, the internal pointer to the object of a's func () calls - b & gt; Func (), very clear!