Regina Calculation Engine
|
An adaptable binary function used to compare the objects to which pointers are pointing. More...
#include <utilities/ptrutils.h>
Public Types | |
typedef bool | result_type |
The result type for this binary comparison function. More... | |
Public Member Functions | |
bool | operator() (const T *ptr1, const T *ptr2) const |
Compares the objects to which the given pointers are pointing. More... | |
Public Attributes | |
const typedef T * | first_argument_type |
The first argument type for this binary function. More... | |
const typedef T * | second_argument_type |
The second argument type for this binary function. More... | |
An adaptable binary function used to compare the objects to which pointers are pointing.
This class is for use with the Standard Template Library.
The first template argument T will generally not be a pointer class. Instead, this function will accept two const pointers to T. It will then dereference these pointers and compare these dereferenced objects using the given comparison function (which defaults to std::less, but which can be changed by passing a different second template argument).