摘要:
Binary Predicate(双参判断式)的用途是:比较两个参数的特定属性我们先建一个领域模型类:Person.h#ifndef _Domain_Models_Person_H_#define _Domain_Models_Person_H_#include #include #include ... 阅读全文
posted @ 2015-09-17 11:43
Master HaKu
阅读(1125)
评论(0)
推荐(0)
摘要:
Predicate是一种特殊的辅助函数,它会返回Boolean,常常被用来作为排序或者查找准则。Predicate会有1个或者2个操作数。Unary Predicate(单参判断式)例子:我们先写一个算法,如下:MathUtil.h#ifndef _Math_Util_H_#define _Math... 阅读全文
posted @ 2015-09-17 09:58
Master HaKu
阅读(1550)
评论(0)
推荐(0)