1 2 3 4 5 6
class foo { friend void bar(); friend void none(); template <typename T> friend vector<T> vec(); };