- 博客(2)
- 资源 (4)
- 收藏
- 关注
原创 list sort方法调研
stl中的list 是双向链表结构,最近用到其中的sort方法,文档中有这么两段:Sorts *this according tooperator. The sort is stable, that is, the relative order of equivalent elements is preserved. All iterators remain valid and con
2011-06-14 15:57:00 2305
原创 通过函数指针调用对象内部方法
知道这个就可以实现 c++中的closure(http://www.cppblog.com/sleepwom/archive/2011/04/06/143489.html) #include using namespace std;class MyClass { public: void PrintName() {
2011-06-09 11:34:00 862
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人