C++ Idiom – Attorney | Filtered Access to friend members
Intent Grant access to only selected member function to the friend class.
Motivation C++ provide no way to Control the granularity of access to the implement details of class. Friend declaration in gives complete access to the internals of class. Friend decleration follow Nothing-or-Everything proposition. Which is …