Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-09-15 19:53:48


"Jeff Flinn" <TriumphSprint2000_at_[hidden]> writes:

> Does this imply that the following would be possible:
>
> begin( as_reverse(x) )

Well, you could create a reversed container adaptor I guess. My
first thought was that

      make_reverse_iterator(begin(x))

was the right incantation. But I might like your idea better.

> begin( as_const( as_reverse(x) ) )
> begin( as_reverse( as_const(x) ) )

Yes, I'm quite fond of those.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

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