Home » Community » Newbie corner » Algorithms and Vectors
Re: Algorithms and Vectors [message #28138 is a reply to message #28136] |
Wed, 18 August 2010 16:06   |
|
Hi Javier,
The predicate is basicaly a less than function, not equality. So the code should beclass Predicate{
public:
bool operator()(const A& lhs, const A& rhs){
return lhs.a<rhs.a;
}
};
Honza
|
|
|
Goto Forum:
Current Time: Sun Jun 22 00:12:33 CEST 2025
Total time taken to generate the page: 0.03668 seconds
|