POV-Ray : Newsgroups : povray.off-topic : Wikipath : Re: Wikipath Server Time
1 Oct 2024 00:05:37 EDT (-0400)
  Re: Wikipath  
From: Fredrik Eriksson
Date: 2 Sep 2008 16:18:13
Message: <op.ugveonda7bxctx@e6600>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.