Exception thrown when a required standard comparer has not been specialized. More...
#include <ogdf/basic/exceptions.h>
Public Member Functions | |
NoStdComparerException (const char *file=nullptr, int line=-1) | |
Constructs a no standard comparer available exception. More... | |
Public Member Functions inherited from ogdf::Exception | |
Exception (const char *file=nullptr, int line=-1) | |
Constructs an exception. More... | |
const char * | file () const |
Returns the name of the source file where exception was thrown. More... | |
int | line () const |
Returns the line number where the exception was thrown. More... | |
const char * | what () const noexcept override |
Exception thrown when a required standard comparer has not been specialized.
The default implementation of StdComparer<E> throws this exception, since it provides no meaningful implementation of comparer methods. You need to specialize this class for the types you want to use with sorting and searching methods (like quicksort and binary search).
Definition at line 221 of file exceptions.h.
|
inlineexplicit |
Constructs a no standard comparer available exception.
Definition at line 224 of file exceptions.h.