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

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.

主站蜘蛛池模板: 师宗县| 芷江| 南投县| 长顺县| 株洲市| 嘉鱼县| 含山县| 南城县| 乌兰浩特市| 会理县| 桃源县| 任丘市| 辽阳市| 瑞丽市| 崇义县| 青冈县| 伽师县| 庆元县| 莱州市| 高台县| 吉林省| 祁东县| 长顺县| 克山县| 福清市| 潼关县| 江山市| 辽中县| 太湖县| 梅州市| 宁夏| 调兵山市| 通化市| 通州市| 建平县| 新源县| 富宁县| 安宁市| 太湖县| 台安县| 康定县|