Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#612 closed request (fixed)

Comparison functor for pointers

Reported by: Peter Owned by: Peter
Priority: major Milestone:
Component: utility Version: trunk
Keywords: Cc:

Description

When comparing pointers, for example, when sorting pointers, it often desired to sort them with respect to "*lhs < *rhs".

A geneic comparison functor could accomplish this

PtrCompare<Value, Comp = std::less<Value> >

bool operator()(Value* lhs, Value* rhs) const

Change History (3)

comment:1 Changed 12 years ago by Peter

Owner: changed from Jari Häkkinen to Peter
Status: newassigned

comment:2 Changed 12 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [2239]) closes #612

comment:3 Changed 12 years ago by Peter

Milestone: yat 0.7

This class was removed, see ticket #632

Note: See TracTickets for help on using tickets.