STL
醉江楼
https://github.com/MichoChan
展开
-
Introduction to the Standard Template Library
转载自:http://www.sgi.com/tech/stl/stl_introduction.html The Standard Template Library, or STL, is a C++ library of container classes, algorithms, and iterators; it provides many of the basic algo转载 2015-11-05 22:25:04 · 983 阅读 · 0 评论 -
STL源码剖析之仿函数
本文仅作为个人学习总结。 作为STL六大组件之一的仿函数,短小、灵活,为算法提供“策略”,使STL应用更加灵活和广泛。 仿函数(functor),顾名思义,类似函数,按照最新C++标准规范,其最新名称为函数对象。 我的理解就是,仿函数就是这样的对象,它和函数类似,可以call,即具有类似函数调用的行为。 那么如何做到这一点呢?即如何定义一个对象,可以像函数一样被调用? 其实了解c++语法原创 2015-11-01 21:47:24 · 638 阅读 · 0 评论