Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2003-10-09 18:26:51


Powell, Gary wrote:
> Yeah, but which iterator type? The container_type::const_iterator
> or the container::iterator?

If the container is const, then const_iterator. Otherwise, iterator.
This also works with arrays an null-terminated strings, and in all
cases, the const-ness of the collection is preserved.

> I'm just not seeing the problem that this macro solves. But that
> could be my macro bigotry as well. Ok, "break;", but I tend to
> want to use an iterator adapter to limit the range.

OK.

-- 
Eric Niebler
Boost Consulting
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