cppreference.com > C/C++ Keywords > friend
friend

The friend keyword allows classes or functions not normally associated with a given class to have access to the private data of that class.