Bewerken

Share via


TotalOrderIeee754Comparer<T> Struct

Definition

Represents a comparison operation that compares floating-point numbers with IEEE 754 totalOrder semantic.

generic <typename T>
 where T : IFloatingPointIeee754<T>public value class TotalOrderIeee754Comparer : IEquatable<System::Numerics::TotalOrderIeee754Comparer<T>>, System::Collections::Generic::IComparer<T>, System::Collections::Generic::IEqualityComparer<T>
public readonly struct TotalOrderIeee754Comparer<T> : IEquatable<System.Numerics.TotalOrderIeee754Comparer<T>>, System.Collections.Generic.IComparer<T>, System.Collections.Generic.IEqualityComparer<T> where T : IFloatingPointIeee754<T>
type TotalOrderIeee754Comparer<'T (requires 'T :> IFloatingPointIeee754<'T>)> = struct
    interface IComparer<'T (requires 'T :> IFloatingPointIeee754<'T>)>
    interface IEqualityComparer<'T (requires 'T :> IFloatingPointIeee754<'T>)>
Public Structure TotalOrderIeee754Comparer(Of T)
Implements IComparer(Of T), IEqualityComparer(Of T), IEquatable(Of TotalOrderIeee754Comparer(Of T))

Type Parameters

T

The type of the numbers to be compared, must be an IEEE 754 floating-point type.

Inheritance
TotalOrderIeee754Comparer<T>
Implements

Methods

Compare(T, T)

Compares two numbers with IEEE 754 totalOrder semantic and returns a value indicating whether one is less than, equal to, or greater than the other.

Equals(Object)

Determines whether this instance and a specified object are equal.

Equals(T, T)

Determines whether the specified numbers are equal.

Equals(TotalOrderIeee754Comparer<T>)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Returns the hash code for this instance.

GetHashCode(T)

Returns a hash code for the specified number.

Applies to