Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::NoStdComparerException Class Reference

Exception thrown when a required standard comparer has not been specialized. More...

#include <ogdf/basic/exceptions.h>

+ Inheritance diagram for ogdf::NoStdComparerException:

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...
 

Detailed Description

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 230 of file exceptions.h.

Constructor & Destructor Documentation

◆ NoStdComparerException()

ogdf::NoStdComparerException::NoStdComparerException ( const char *  file = nullptr,
int  line = -1 
)
inlineexplicit

Constructs a no standard comparer available exception.

Definition at line 234 of file exceptions.h.


The documentation for this class was generated from the following file: