
29 Apr
2003
29 Apr
'03
10:56 a.m.
--- At Fri, 25 Apr 2003 17:01:56 -0400, Vincent LaBella wrote:
sequence, so I tried <snip> last = tok.begin(); advance(last,tok.size()-1); // error size() not defined. <snip> Implementation left as an excercise. (Is there a standard algorithm
--- In Boost-Users@yahoogroups.com, "Duane Murphy"
might fit well besides for_each()?)
how about: std::advance(first, std::distance(first,last)-1) ? The only requirement for distance() is that iterators be input iterators, which tokenizer's are. jh