Sorry to bother you with it, but I couldn't find a suitable example online
so I had to come here.
So, for a simple example of an advanced data type, how would you implement
a member function, non-member friend function, and a non-member non-friend
function.
I don't mind what the example be, as long as it is quit simple one.
A non-member function is a function that is not a member of a class. In the example above non_member_non_friend_function() is a static member function.
To fix the example you can move the function outside of the class definition.