RValue References: Moving Forward» a series of blog posts by Dave Abrahams one of the founding members and moderators of Boost.
For a slightly more gentle introduction to rvalue references (if you have not come across them yet) you might read this paper. This one is a bit dated but gives a good introduction to the concept.
RValue References: Moving Forward»
Page 1 of 11 Replies - 3652 Views - Last Post: 09 August 2011 - 09:42 AM
Replies To: RValue References: Moving Forward»
#2
Re: RValue References: Moving Forward»
Posted 09 August 2011 - 09:42 AM
see its little things like this that get me:
This is of course counter intuitive from a beginner/intermediate perspective. Of course relieing upon elision is probably not really good advice to give a beginner/intermediate (I considered myself an intermediate C++ programmer again at this point... my ego has been checked recently as I did some research into a subject (expressions) that I thought I understood pretty well but need to clean a few things up... turns out I only knew (or rather connected together) a very superficial level of what was going on).
Quote
Guideline: Don’t copy your function arguments. Instead, pass them by value and let the compiler do the copying.
This is of course counter intuitive from a beginner/intermediate perspective. Of course relieing upon elision is probably not really good advice to give a beginner/intermediate (I considered myself an intermediate C++ programmer again at this point... my ego has been checked recently as I did some research into a subject (expressions) that I thought I understood pretty well but need to clean a few things up... turns out I only knew (or rather connected together) a very superficial level of what was going on).
Page 1 of 1
|
|

New Topic/Question




MultiQuote



|