随笔分类 -  STL_functor

STL教程中讲到的 函数对象
摘要:1、自定义函数对象 1.1、简单例子: //函数对象 struct StuFunctor { bool operator() (const CStudent &stu1, const CStudent &stu2) { return (stu1.m_iID<stu2.m_iID); } } 1.2、 阅读全文
posted @ 2016-04-27 13:31 CppSkill 阅读(175) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示