Final Words : References or Pointers

Hi,

There are already many threads of this on this forum. But again asking related question, so please excuse me !!!

I have gone through lot of material on the internet regarding using References and Pointers. But still could not finally come to any significant conclusion. Hence, please experts guide me.

If I want to pass a big vector class (non-const) to a function/constructor. What should I adopt, References or Pointers?

Efficiency
Speed-up
Memory copy (stack stuff)

Which is the best way for writing efficient code?

Suggestions will be welcome.
Thanks.

--
eye51
There's no difference in performance.
Use pointers if the parameter is optional (i.e. it can be 0), references otherwise.
Topic archived. No new replies allowed.