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

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
主站蜘蛛池模板: 社旗县| 南平市| 阜城县| 新疆| 衡山县| 尼木县| 荆门市| 金堂县| 金阳县| 荆门市| 乐亭县| 弥勒县| 商河县| 香港| 石城县| 玛沁县| 乐平市| 镇康县| 中阳县| 海门市| 龙州县| 康平县| 大关县| 敖汉旗| 镇赉县| 禹城市| 无锡市| 永丰县| 阆中市| 天柱县| 六枝特区| 灵石县| 新余市| 威海市| 丰顺县| 思茅市| 耒阳市| 马龙县| 县级市| 达尔| 合水县|