Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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.
 
- Public Member Functions inherited from ogdf::Exception
 Exception (const char *file=nullptr, int line=-1)
 Constructs an exception.
 
const charfile () const
 Returns the name of the source file where exception was thrown.
 
int line () const
 Returns the line number where the exception was thrown.
 

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


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