官术网_书友最值得收藏!

Iterators and Ranges

In the previous chapter, we implemented several generic algorithms that operated on containers, but in an inefficient manner. In this chapter, you'll learn:

  • How and why C++ generalizes the idea of pointers to create the iterator concept
  • The importance of ranges in C++, and the standard way to express a half-open range as a pair of iterators
  • How to write your own rock-solid, const-correct iterator types
  • How to write generic algorithms that operate on iterator pairs
  • The standard iterator hierarchy and its algorithmic importance
主站蜘蛛池模板: 贵溪市| 界首市| 通许县| 崇阳县| 鄂温| 岢岚县| 顺昌县| 上思县| 普宁市| 哈巴河县| 绍兴县| 黄浦区| 安福县| 玉山县| 凤阳县| 涟水县| 邵东县| 临湘市| 淳化县| 都匀市| 滕州市| 滕州市| 荔浦县| 龙南县| 山西省| 日土县| 宜宾县| 青岛市| 台南县| 南和县| 永顺县| 东乡族自治县| 遵化市| 内乡县| 额尔古纳市| 罗城| 夏津县| 图木舒克市| 绵竹市| 武川县| 宁津县|