What are the criteria for making a function a member vs. a friend?
14488
When should you use 'friend' in C++?
125292
how to pass a non static-member function as a callback?
77161
Why would you use a class method constructor versus alloc/init?
80176
What is the cost of a function call?
66487
What are the Pointer-to-Member ->* and .* Operators in C++?
1473
When can I use a forward declaration?
98261
Can I implement an autonomous `self` member type in C++?
116670
In Python, when should I use a function instead of a method?
58024
How do you mark a struct template as friend?
154897
How to print member function address in C++
78774
Accessing private members
150233
Why doesn't reference-to-member exist in C++?
17568
Function pointer to class member function problems
128686
Using std::bind with member function, use object pointer or not for this argument?
39095
Is there any reason not to make a member function virtual?
64890
Which is more preferable to use: lambda functions or nested functions ('def')?
56122
Is there any way to define pure functions with optional arguments?