|
DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
|
Defines a generalized type-specific comparison method that a value type or class implements to order or sort its instances. More...
#include <Comparable.h>
Public Member Functions | |
| virtual | ~IComparable ()=default |
| Virtual destructor for polymorphic cleanup. | |
| virtual | ~IComparable ()=default |
| Virtual destructor for polymorphic cleanup. | |
| virtual int | CompareTo (const Object &obj)=0 |
| Compares the current instance with another object and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. | |
| virtual int | CompareTo (const T &other)=0 |
| Compares the current instance with another object of the same type and returns an integer indicating relative order. | |
Defines a generalized type-specific comparison method that a value type or class implements to order or sort its instances.
Defines a generalized comparison method that a value type or class implements to create a type-safe comparison method for ordering or sorting its instances.
Standard Citation: ECMA-335 CLI Common Language Infrastructure.
| T | The type of object to compare. Standard Citation: ECMA-335 CLI Common Language Infrastructure. |
Definition at line 15 of file Comparable.h.
|
virtualdefault |
Virtual destructor for polymorphic cleanup.
|
virtualdefault |
Virtual destructor for polymorphic cleanup.
|
pure virtual |
Compares the current instance with another object and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
| obj | An object to compare with this instance. |
|
pure virtual |
Compares the current instance with another object of the same type and returns an integer indicating relative order.
| other | An object to compare with this instance. |