Compares two floating point numbers, within threshold of equivalence. More...
#include "stl_compares.h"
Public Member Functions | |
floating_point_threshold (Key threshold=get_nearly_zero_value((Key) 0)) | |
bool | operator() (const Key &a, const Key &b) const |
Returns true if a sorts before b, false otherwise. More... | |
Public Attributes | |
const Key | _threshold |
Compares two floating point numbers, within threshold of equivalence.
Definition at line 60 of file stl_compares.h.
|
inline |
Returns true if a sorts before b, false otherwise.
Definition at line 29 of file stl_compares.I.