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

The Iterator-Pair Algorithms

Now that you've been introduced to iterator types--both standard-provided and user-defined--it's time to look at some of the things you can do with iterators.

In this chapter you'll learn:

  • The notion of a "half-open range," which nails down the exact manner in which two iterators can be said to define a range
  • How to classify each standard algorithm as "read-only," "write-only", "transformative", or "permutative"; and as "one-range", "two-range", or "one-and-a-half range"
  • That some standard algorithms, such as merge and make_heap, are merely the necessary building blocks out of which we make higher-level entities such as stable_sort and priority_queue
  • How to sort a range based on a comparator other than operator<
  • How to manipulate sorted arrays using the erase-remove idiom
主站蜘蛛池模板: 蛟河市| 英超| 毕节市| 鹿泉市| 开江县| 永安市| 汪清县| 红原县| 堆龙德庆县| 云龙县| 龙门县| 灵武市| 常州市| 日土县| 杭锦旗| 临海市| 彭山县| 团风县| 二连浩特市| 犍为县| 永福县| 尖扎县| 应用必备| 青岛市| 崇义县| 凤山县| 灌阳县| 夏邑县| 恩平市| 大新县| 海伦市| 荃湾区| 集安市| 华池县| 五家渠市| 江达县| 陈巴尔虎旗| 白银市| 永年县| 谢通门县| 汉源县|