Boost logo

Boost :

From: Matthew Wilson (stlsoft_at_[hidden])
Date: 2003-11-19 21:39:00

> The main advantage to "intervals" over "iterators" is that I am not
> constantly harassed into having to carry two separate objects around all
> the time: instead I just carry one. It is tiring to deal with
> interfaces which appear to have been designed with no attention to the
> common case. Sure,
> std::sort( v.begin(), v.begin()+5 );
> is more expressive, as it lets me just sort the first 5 elements.
> But 99% of the time, I just want to sort the whole darn thing, and I
> hate having to write
> std::sort( v.begin(), v.end() );
> instead of
> std::sort( v.interval() );
> or just
> std::sort( v );
> But anyway, I am just whining/opining. I have not paid much attention
> to the specifics of your (or anyone's) designs to address this issue,
> but I have great confidence that you-all will create high-quality
> libraries along these lines to provide the convenience I desire. :)

We shall try. We shall try.

Thanks for the kind words


Matthew Wilson
STLSoft moderator (
Contributing editor, C/C++ Users Journal
"If I'm curt with you it's because time is a factor. I think fast, I talk
fast, and I need you guys to act fast" -- Mr Wolf

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