Boost logo

Boost :

From: Phil Endecott (spam_from_boost_dev_at_[hidden])
Date: 2008-08-15 12:14:08

Daryle Walker wrote:
> I'm going to redo the "hat" project I have in the sandbox. It
> currently is a brand new container design; I want to change it into
> an adaptor, like std::stack.

> Hmm, as I was writing this, I thought of an alternative. Maybe I
> could use a deque,

Or a vector.

> but swap the found element with the rear one
> before popping. Then erasure would be cheaper. Would that work?

Yes, that is certainly the right way to do it.


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