For clarity, when I pass by referrence like this:
the overhead is the same as if I passed a pointer like this:Code:class Something { public: int i; char c[20]; long l; float f; }; void DoSomething(Something &something);
Code:void DoSomething(Something *something);
as opposed to if I pass by value like this:
in which case the overhead is sizeof(Something).Code:void DoSomething(Something something);
Is that all correct?