Revert "Revert "友元函数、友元类""

This reverts commit 60523bcd8e392e26816f806f7360f137e5196b65.