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

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
主站蜘蛛池模板: 井研县| 莱州市| 肃宁县| 迁西县| 青海省| 镇沅| 克拉玛依市| 嘉荫县| 玛纳斯县| 同德县| 方城县| 酉阳| 孟州市| 阳原县| 宾阳县| 邢台县| 丽江市| 长丰县| 犍为县| 东乡县| 石狮市| 石屏县| 嘉义市| 河曲县| 抚州市| 大田县| 来宾市| 叶城县| 方山县| 十堰市| 红河县| 浦东新区| 南召县| 嵊泗县| 定州市| 察雅县| 临颍县| 松江区| 图片| 晋州市| 淳安县|