K
karl
hi all,
could anyone explain the differences between:
template<typename T> // let's suppose that T could be a user - defined class
foo(T const & p);
and
template<typename T>
foo(const T& p);
in terms of use, efficiency, use of temporary objects and so on...
thanks
could anyone explain the differences between:
template<typename T> // let's suppose that T could be a user - defined class
foo(T const & p);
and
template<typename T>
foo(const T& p);
in terms of use, efficiency, use of temporary objects and so on...
thanks