friend Specifier
The friend specifier is used to designate functions or classes that have the same access privileges as class member functions. Friend functions and classes are covered in detail in friend.
Den här webbläsaren stöds inte längre.
Uppgradera till Microsoft Edge och dra nytta av de senaste funktionerna och säkerhetsuppdateringarna, samt teknisk support.
The friend specifier is used to designate functions or classes that have the same access privileges as class member functions. Friend functions and classes are covered in detail in friend.