$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-01-22 08:39:22
Gregory Colvin wrote:
> On Jan 22, 2004, at 6:06 AM, Peter Dimov wrote:
>
>> ...
>>
>> FWIW, I really don't think that someone that allocated a 2+Gb array
>> will use
>> operator[] on it;
>
> Why not?
Speculations. I've never seen someone do it. I never do it. I always use
pointer operations to manipulate large chunks. That's under the assumption
that whoever used move_ptr<T[]> instead of a vector<T> is performance and
overhead sensitive. The optimizers aren't very good at such code because of
their conservative aliasing assumptions.