DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
Comparable2.h
Go to the documentation of this file.
1
5
6#pragma once
7
8namespace DotNetDupe {
9 namespace System {
15 template <class T>
16 class IComparable {
17 public:
19 virtual ~IComparable() = default;
20
24 virtual int CompareTo(const T& other) = 0;
25 };
26 }
27}
Defines a generalized type-specific comparison method that a value type or class implements to order ...
Definition Comparable.h:15
virtual int CompareTo(const T &other)=0
Compares the current instance with another object of the same type and returns an integer indicating ...
virtual ~IComparable()=default
Virtual destructor for polymorphic cleanup.