Boost logo

Boost :

Subject: Re: [boost] On Iteration
From: Christian Holmquist (c.holmquist_at_[hidden])
Date: 2009-11-11 19:51:38


2009/11/10 James Porter <porterj_at_[hidden]>

> Andrei Alexandrescu wrote:
>
>> My article with a draft name "Iterators Must Go (Ahead)" is now published
>> on InformIt and mentioned on reddit.com. Due to the vagaries of posting
>> time and reddit dynamics, the article didn't stay long on reddit's
>> programming page so it got very few views and comments.
>>
>
>
>
Something I have wondered since listening to the lecture (online) from
BoostCon, is how the interaction between ranges and containers is designed.
For instance, how does std::container<T>::insert and erase look?
How would the following example from the SGI STL doc be written in, say, D's
standard library (I did search the D documentation, but couldn't find the
answer).

    std::vector<int> v;
    v.push_back(...);
    v.erase(v.begin(), std::find(v.begin(), v.end(), X));

Sorry if this is already covered, I would very much be interested in reading
further on this topic.

Thanks,
Christian


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