(原創) 为什么说iterator是left inclusive? (C/C++) (STL)

因为c.begin()是第一个element,但c.end()并不是最后一个element,而是one past the end,所以c.end()并不是iterator.

若以符号表示,则是
[first,last)
the range begin with first and ends with, but not include, last.

Reference
C++ Primer 4th P.314

posted on 2006-11-15 23:20  真 OO无双  阅读(429)  评论(0编辑  收藏  举报

导航