Name: Anonymous 2012-11-20 15:55
Why do i want to pass strings by reference in c++?
As i understand it, a string object is just an object
that has one or several pointers to the heap.
So if i pass a string by value, it won't copy the entire string, just this handle object.
It's that cool?
As i understand it, a string object is just an object
that has one or several pointers to the heap.
So if i pass a string by value, it won't copy the entire string, just this handle object.
It's that cool?