
30 Mar
2005
30 Mar
'05
4:39 p.m.
"John Maddock" wrote:
Or possibly deprecate param_type ;-)
On most modern machines the difference between passing small types by reference and by value is negligible, the main use is to prevent aliasing (similar to C99's restrict keyword):
Similar feature was (cca year ago) added into STLport. Measurements had shown several % speedup for vector<int>::push_back(). Implementors of STL count every cycle. /Pavel