i'm trying to pass a set<blabla*> to a function... i know it's done by reference but i can't find the right syntax...
anyone can provide an example??
thenx...
i'm trying to pass a set<blabla*> to a function... i know it's done by reference but i can't find the right syntax...
anyone can provide an example??
thenx...
Just like anything else, you put the name of the set inside the parentheses of the function.
In the parameter list, you put the object just as you would declare the object in the body of the code. If you want to pass by reference, put an & in front of the name.