- 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.
推薦閱讀
- Clojure Programming Cookbook
- 編寫高質(zhì)量代碼:改善Python程序的91個(gè)建議
- 基于差分進(jìn)化的優(yōu)化方法及應(yīng)用
- Python自然語言處理(微課版)
- 差分進(jìn)化算法及其高維多目標(biāo)優(yōu)化應(yīng)用
- Mastering KnockoutJS
- Modern JavaScript Applications
- Node.js:來一打 C++ 擴(kuò)展
- Unity 3D腳本編程:使用C#語言開發(fā)跨平臺(tái)游戲
- Visual Basic程序設(shè)計(jì)習(xí)題與上機(jī)實(shí)踐
- QGIS 2 Cookbook
- Unity 5.X從入門到精通
- 數(shù)據(jù)分析與挖掘算法:Python實(shí)戰(zhàn)
- 高效使用Greenplum:入門、進(jìn)階與數(shù)據(jù)中臺(tái)
- 視窗軟件設(shè)計(jì)和開發(fā)自動(dòng)化:可視化D++語言