- 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
推薦閱讀
- 自己動手實現Lua:虛擬機、編譯器和標準庫
- PHP+MySQL+Dreamweaver動態網站開發實例教程
- Java應用開發技術實例教程
- Windows Forensics Cookbook
- Spring Boot Cookbook
- Python機器學習基礎教程
- 數據結構案例教程(C/C++版)
- Procedural Content Generation for C++ Game Development
- Python全棧數據工程師養成攻略(視頻講解版)
- HTML5權威指南
- Learning Nessus for Penetration Testing
- MyBatis 3源碼深度解析
- JavaScript悟道
- Android高級開發實戰:UI、NDK與安全
- PHP Microservices