- Mastering the C++17 STL
- Arthur O'Dwyer
- 124字
- 2021-07-08 10:20:22
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
推薦閱讀
- Advanced Machine Learning with Python
- Wireshark Network Security
- Internet of Things with Intel Galileo
- C語言程序設計案例精粹
- HTML5 APP開發從入門到精通(微課精編版)
- iOS自動化測試實戰:基于Appium、Python與Pytest
- 持續輕量級Java EE開發:編寫可測試的代碼
- Java網絡編程實戰
- Programming with CodeIgniterMVC
- Clojure for Machine Learning
- FFmpeg開發實戰:從零基礎到短視頻上線
- RubyMotion iOS Develoment Essentials
- LabVIEW入門與實戰開發100例(第4版)
- ASP.NET本質論
- Visual C++程序開發范例寶典