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