Y
Hacker News
new
|
ask
|
show
|
jobs
by
first_amendment
3219 days ago
C++11 allows you to write natural "value-oriented" code without paying a copying cost. This is thanks to RVO (return value optimization) and move semantics.
2 comments
barrkel
3218 days ago
You might have noticed that we were talking about C and assembly.
link
sqeaky
3219 days ago
There is often a great deal of copy elision when passing things by value when the compiler can prove it the copying itself won't cause side effects.
link