Boost logo

Boost :

From: Daryle Walker (darylew_at_[hidden])
Date: 2001-07-13 16:04:36


Nobody would mind if I make a new header with some insert iterator class
templates, right? It could be called more_iterator.hpp and have:

stack_insert_iterator
    + an output iterator like back_insert_iterator, etc.
    + container needs the "push" member function

stack_remover_iterator
    + an input iterator instead
    + operator *() calls the "top" member function
    + operator ++() calls the "pop" member function
    + a default-initialized object acts as a puesdo-end
        + it would compare to the container's "empty" member function

back_remove_iterator
    + like stack_remover_iterator
    + substitute "pop_back" for "pop," and "back" for "top"

front_remove_iterator
    + like stack_remover_iterator
    + substitute "pop_front" for "pop," and "front" for "top"

-- 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

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