官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 泽普县| 承德市| 都匀市| 彰化市| 盱眙县| 新泰市| 富蕴县| 彭泽县| 微山县| 海丰县| 邓州市| 开封县| 涟源市| 景洪市| 通渭县| 习水县| 儋州市| 信宜市| 文安县| 榆中县| 梅州市| 基隆市| 衡南县| 夏津县| 塘沽区| 勐海县| 镇原县| 尉氏县| 五常市| 新竹县| 英山县| 娄烦县| 柘城县| 双桥区| 平陆县| 广水市| 高邑县| 同仁县| 溧阳市| 大理市| 彩票|