- 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.
推薦閱讀
- Learn ECMAScript(Second Edition)
- NLTK基礎(chǔ)教程:用NLTK和Python庫(kù)構(gòu)建機(jī)器學(xué)習(xí)應(yīng)用
- Python數(shù)據(jù)可視化之Matplotlib與Pyecharts實(shí)戰(zhàn)
- C語(yǔ)言程序設(shè)計(jì)
- 新印象:解構(gòu)UI界面設(shè)計(jì)
- 零基礎(chǔ)學(xué)HTML+CSS
- Mastering Adobe Captivate 7
- Mastering HTML5 Forms
- Android應(yīng)用開(kāi)發(fā)攻略
- Python程序設(shè)計(jì):基礎(chǔ)與實(shí)踐
- JSP程序設(shè)計(jì)與案例教程
- C++ Primer(中文版)(第5版)
- Learning Behavior:driven Development with JavaScript
- PostGIS Cookbook
- Test-Driven iOS Development with Swift 4(Third Edition)