Proposal: takeFront and takeBack

Mehrdad wfunction at hotmail.com
Wed Jul 4 01:29:14 PDT 2012


On Wednesday, 4 July 2012 at 08:25:59 UTC, Roman D. Boiko wrote:
> That would be almost perfect. But has drawbacks:
>
> * if element is big and may be not needed in all calls to 
> popFront (when the user wants to ignore elements), there would 
> be some overhead;

Could you give an example of such a range? Does such a 
heavyweight range come up in practice? (I'm assuming RVO would 
take care of not calling copy constructors and such.)



More information about the Digitalmars-d mailing list