|
|
On Tue, 02 Sep 2008 21:13:43 +0200, Darren New <dne### [at] sanrrcom> wrote:
> Warp wrote:
>> Personally I'm drooling over rvalue references, which will allow for
>> much more efficient move semantics.
>
> My understanding is that informally, this lets you match a template or
> overload where one or more of the arguments is, essentially, guaranteed
> to not be aliased. Is this a reasonable summary?
Not really, at least not the way I understand it.
R-value references are basically just a way to bind temporaries to
non-const references. Specifically, they facilitate move constructors
which are much like copy constructors except that they may destructively
alter the source of the "copy".
--
FE
Post a reply to this message
|
|