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

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
主站蜘蛛池模板: 六枝特区| 建水县| 新余市| 安顺市| 泸溪县| 壶关县| 桂林市| 永平县| 芮城县| 淅川县| 韩城市| 沛县| 高要市| 阳曲县| 兴业县| 时尚| 新乡县| 岳池县| 延安市| 汽车| 洛阳市| 阆中市| 黔西县| 沙坪坝区| 海原县| 桃江县| 昂仁县| 咸阳市| 大姚县| 汉阴县| 凌云县| 淮滨县| 新昌县| 东乌珠穆沁旗| 井研县| 洞口县| 蒙山县| 新乡县| 阜平县| 靖远县| 海兴县|