- Mastering C++ Programming
- Jeganathan Swaminathan
- 114字
- 2021-07-02 18:28:48
Algorithms
The STL algorithms are powered by C++ templates; hence, the same algorithm works irrespective of what data type it deals with or independently of how the data is organized by a container. Interestingly, the STL algorithms are generic enough to support built-in and user-defined data types using templates. As a matter of fact, the algorithms interact with the containers via iterators. Hence, what matters to the algorithms is the iterator supported by the container. Having said that, the performance of an algorithm depends on the underlying data structure used within a container. Hence, certain algorithms work only on selective containers, as each algorithm supported by the STL expects a certain type of iterator.
推薦閱讀
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- Python入門很簡單
- Azure IoT Development Cookbook
- 基于免疫進化的算法及應用研究
- C語言最佳實踐
- Spring Cloud、Nginx高并發核心編程
- SQL Server從入門到精通(第3版)
- C#開發案例精粹
- .NET 4.5 Parallel Extensions Cookbook
- JavaScript程序設計:基礎·PHP·XML
- Instant jQuery Boilerplate for Plugins
- Python+Office:輕松實現Python辦公自動化
- Docker:容器與容器云(第2版)
- Java核心編程
- Python網絡爬蟲從入門到實踐