因为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

相关文章:

  • 2021-11-30
  • 2021-06-23
  • 2021-10-13
  • 2022-01-16
  • 2021-08-06
  • 2022-01-05
  • 2021-12-15
  • 2022-01-27
猜你喜欢
  • 2021-12-03
  • 2021-12-11
  • 2022-02-16
  • 2021-07-19
  • 2021-11-28
  • 2021-09-20
  • 2021-08-29
相关资源
相似解决方案