friend stand alone functions

how do you write a friend function for a class that is a stand alone functions and whats an example of using it?

is it something like this in the class?

 
friend int myFunction(int x, int y);


Topic archived. No new replies allowed.