help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hash_map


From: John Max Skaller
Subject: Re: hash_map
Date: Sun, 20 Feb 2005 01:00:04 +1100
User-agent: Pan/0.13.3 (That cat's something I can't explain)

On Sat, 19 Feb 2005 05:00:18 +0000, Guy Harrison wrote:

> Pass by const ref

Pass by reference is necessary for virtual dispatch sometimes.
However, pass by value should be faster if the argument
is an rvalue, the cost of passing is zero in that case.

So for small objects where copying is reasonably fast
pass by value is probably faster in general, even
if the argument is an lvalue and has to be copied.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]