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

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.

主站蜘蛛池模板: 老河口市| 鸡泽县| 当雄县| 疏附县| 郸城县| 铁岭县| 漯河市| 哈密市| 肇源县| 哈密市| 巨鹿县| 邛崃市| 漾濞| 溧水县| 察隅县| 高淳县| 金溪县| 和顺县| 浦江县| 麻城市| 梅州市| 英吉沙县| 霍林郭勒市| 广丰县| 泰宁县| 砀山县| 靖宇县| 读书| 海门市| 策勒县| 荔浦县| 黑山县| 青岛市| 兴和县| 略阳县| 桃源县| 安图县| 陕西省| 浙江省| 彰化县| 商城县|