- 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
推薦閱讀
- Vue.js 3.x快速入門
- Learn Blockchain Programming with JavaScript
- Game Programming Using Qt Beginner's Guide
- Linux C/C++服務器開發實踐
- OpenCV 3和Qt5計算機視覺應用開發
- 跟小海龜學Python
- Android 應用案例開發大全(第3版)
- MATLAB 2020從入門到精通
- C++程序設計教程(第2版)
- 青少年學Python(第2冊)
- PhoneGap 4 Mobile Application Development Cookbook
- Spring Boot從入門到實戰
- 體驗之道:從需求到實踐的用戶體驗實戰
- RESTful Web API Design with Node.js(Second Edition)
- Android項目實戰:博學谷