Boost logo

Boost :

Subject: Re: [boost] Proposal: Monotonic Containers
From: Christopher Jefferson (chris_at_[hidden])
Date: 2009-06-10 17:22:23


On 10 Jun 2009, at 22:16, Thorsten Ottosen wrote:

> Christopher Jefferson skrev:
>> On 9 Jun 2009, at 17:14, Christian Schladetsch wrote:
>>> Hi Andrew:
>>>
>>> Maybe yes, maybe no. My understanding of the allocators was that
>>> they were
>>>> originally used to abstract differences in pointer types like
>>>> __far and
>>>> __huge pointers. Their usage has become substantially more
>>>> complex and
>>>> varied since then.
>>>
>>>
>>>
>>> If STL containers cannot be made by any means to use the stack for
>>> storage
>>> then we need a new set of containers.
>
>> There is no issue with using stack storage for containers -- I do
>> it regularly.
>
> Do you also do it for non-local containers?

I should say "In practice, I find it works, as long as I do not copy
the container", no issue is too strong a claim, yes!

Chris


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk