cpp/language/friend name injection

Friend name injection is a technique by which the name of an in-class friend function is made visible to the immediately surrounding namespace. Originally, the Barton–Nackman trick relied on it before friend name injection was removed from the standard.