
9 Sep
2004
9 Sep
'04
9:28 p.m.
"Jonathan Turkanis" <technews@kangaroologic.com> wrote in message news:chqfj7$sh4$1@sea.gmane.org... | | "Thorsten Ottosen" <nesotto@cs.auc.dk> wrote in message | > sub_range<string> sub = ...; | > if( sub == "foo" ) | | Wouldn't it be natural to define a collection-oriented version of std::equal | from <algorithm> to perform this test? sure, but that might be frased in term of one range argument and one iterator argument...and it wouldn't be easy to use. | > 3. operator<() cannot be defined for iterators in general and hence we | > couldn't put iterator_range into a set/map; | | Would this be a lexicograpkical comparison? yes, simply forward to std::lexicographical_compare br Thorsten