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

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
主站蜘蛛池模板: 收藏| 新巴尔虎左旗| 赤水市| 夏津县| 龙州县| 望谟县| 城口县| 利川市| 拜泉县| 日土县| 萍乡市| 红桥区| 靖远县| 县级市| 南康市| 扎囊县| 九龙城区| 浙江省| 潮州市| 满城县| 马公市| 孟津县| 曲周县| 隆子县| 阿拉善盟| 新乐市| 常德市| 新巴尔虎左旗| 贵阳市| 大庆市| 巴彦淖尔市| 沧州市| 根河市| 临安市| 罗田县| 云龙县| 漾濞| 长宁区| 林口县| 垫江县| 麻栗坡县|