
8 Sep
2004
8 Sep
'04
11:36 p.m.
Stefan Seefeld <sseefeld@art.ca> writes:
From: Neal D. Becker [mailto:ndbecker2@verizon.net] Sent: September 8, 2004 15:59
u.begin() should return an iterator, and the iterator should define operator[]. Why doesn't this work?
huh ? Which iterator defines operator[] ?
All legal random access iterators do (including, of course, pointers). But nobody should use an iterator's operator[] in generic code because it may be inefficient. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com