i know that when passing a class/struct or anything quite large of an object through a parameter by reference is a lot more sufficient than copying, same thing goes for returning it by reference.
How about the small variables, like int's and floats as well as strings. Would it be more sufficient to pass it by reference or just copying it over? same thing goes for returning?
or does this depend on what you are going to do with the member? or does it not make a significant difference.
forgive me for my little lack of knowledge on this area
How about the small variables, like int's and floats as well as strings. Would it be more sufficient to pass it by reference or just copying it over? same thing goes for returning?
or does this depend on what you are going to do with the member? or does it not make a significant difference.
forgive me for my little lack of knowledge on this area
Comment