Template Struct PtrComparer

Struct Documentation

template<typename PtrType>
struct PtrComparer

Provides value based comparisons for stl containers of pointer types.

Public Functions

inline bool operator()(PtrType const &lhs, PtrType const &rhs) const

Compares two objects referenced by pointer by their values.

Parameters
  • lhs -- [in] A pointer to the left hand side object to compare

  • rhs -- [in] A pointer to the right hand side object to compare

Returns

Whether or not the value of the left hand side object evaluates to less than the value of the right hand side object