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

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.

主站蜘蛛池模板: 崇义县| 井冈山市| 右玉县| 修文县| 广州市| 高要市| 玉环县| 张家口市| 改则县| 惠安县| 涞源县| 公安县| 贵阳市| 古田县| 屏山县| 石柱| 南昌市| 北海市| 天气| 五莲县| 南木林县| 佛学| 泽州县| 乌拉特前旗| 金昌市| 平邑县| 大石桥市| 陇川县| 云霄县| 化州市| 元谋县| 昆明市| 宁强县| 和田县| 元阳县| 弥勒县| 蚌埠市| 洪泽县| 汪清县| 敦化市| 滁州市|