Regina Calculation Engine
|
A binary function object that compares sequences lexicographically, for use in containers that hold pointers to sequences. More...
#include <utilities/sequence.h>
Public Member Functions | |
bool | operator() (const LightweightSequence *a, const LightweightSequence *b) const |
Compares two sequences lexicographically. More... | |
A binary function object that compares sequences lexicographically, for use in containers that hold pointers to sequences.
|
inline |
Compares two sequences lexicographically.
The sequences need not be the same size.
This routine is identical to testing (*a) < (*b)
.
a | a pointer to the first of the two sequences to compare. |
b | a pointer to the second of the two sequences to compare. |
true
if sequence a is strictly lexicographically smaller than sequence b, or false
if a is either lexicographically greater than or equal to b.