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.


Eric Niebler
Boost Consulting

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