Boost logo

Boost :

Subject: Re: [boost] Proposal: Monotonic Containers
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-06-14 18:40:02


AMDG

Scott McMurray wrote:
> 2009/6/14 Christian Schladetsch <christian.schladetsch_at_[hidden]>:
>
>> I have since written rope<T, C>. This presents a sequence container to the
>> user, using a list of vectors internally. T is the value_type, C is the
>> ChunkSize. Each vector within the list-of-vectors is at least ChunkSize
>> long.
>>
>> It provides O(N/ChunkSize) access time to elements in the sequence. So it is
>> slower than a vector, but faster than a list. The speed of access can be
>> tuned by the user by varying the ChunkSize.
>>
>> The main benefit of a rope over a vector is that a rope can grow
>> indefinately without ever needing to be resized.
>>
>>
>
> How does this differ from a deque?
>

deque has fixed size blocks

In Christ,
Steven Watanabe


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