关于集合set的问题
请大家帮我看看下面语句什么意思set<GRegion*, GEntityLessThan> regions;
其中:
class GEntityLessThan {
public:
bool operator()(const GEntity *ent1, const GEntity *ent2) const
{
return ent1->tag() < ent2->tag();
}
};
2009-10-04 20:19
2010-06-07 17:09