Boost logo

Boost :

Subject: Re: [boost] Rationale for shared_ptr/array including both ptr to control and ptr to data in class
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-09-26 08:46:57

On 26/09/2011 14:42, Olaf van der Spek wrote:
> On Mon, Sep 26, 2011 at 2:11 PM, Mathias Gaunard
> <mathias.gaunard_at_[hidden]> wrote:
>>> Ah. BTW, why doesn't shared_array provide size()?
>>> IMO it'd be quite useful to have.
>> Because it's not storing that information.
> So why is it not storing that info?

Because it doesn't have it to begin with, and doesn't aim at having it.

It's just a shared_ptr variant that calls delete[] instead of delete.

Boost list run by bdawes at, gregod at, cpdaniel at, john at