Opened 11 years ago

Closed 11 years ago

#632 closed request (fixed)

PtrCompare is a special case of compose_f_gx_hy

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

Description

PtrCompare?<compare>(x,y) returns for example

compare(*x, *y)

which is a special case of compose_f_gx_hy where F=compare; G and H are functors returning *x.

So in principle PtrCompare? (not released) could be removed if we have a functor that return *x.

Possibly we should keep a

typedef compose_f_gx_hy <XXX> PtrCompare;

or a convenient function a la std::make_pair.

Change History (3)

comment:1 Changed 11 years ago by Peter

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

comment:2 Changed 11 years ago by Peter

(In [2285]) adding a class Dereferencer, a functor that returns *argument. refs #632

comment:3 Changed 11 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [2286]) replace class PtrCompare? with two function make_ptr_compare that return compose_f_gx_hy functors. closes #632

Note: See TracTickets for help on using tickets.