Static member functions
问题 After reading sbi and Eli Bendersky's answers in this question I started to wondering what static member functions are for. A class' friend free function shouldn't be able to do anything a static member function can do? If so, why/when should I prefer a static member function to a friend free one? 回答1: In general: Require access to private members static member functions have access to private members of the class. If you need that, you can use a static member function. You have to declare it