xtd 0.2.0
Loading...
Searching...
No Matches
xtd::collections::generic::empty_comparer< type_t > Class Template Reference
Inheritance diagram for xtd::collections::generic::empty_comparer< type_t >:
xtd::object xtd::collections::generic::icomparer< type_t > xtd::interface

Definition

template<typename type_t>
class xtd::collections::generic::empty_comparer< type_t >

Provides an empty comparer class.

Definition
template<typename type_t>
Provides an empty comparer class.
Definition empty_comparer.h:30
Exposes a method that compares two objects.
Definition icomparer.h:30
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
Header
#include <xtd/collections/generic/empty_comparer
Namespace
xtd::collections::generic
Library
xtd.core

Public Constructors

 empty_comparer ()=default
 Initializes a new instance of the xtd::collections::generic::comparer <type_t> class.
 

Public Methods

int32 compare (const type_t &x, const type_t &y) const override
 Compares two entities and returns a value indicating whether one is less than, equal to, or greater than the other.
 

Additional Inherited Members

- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<typename object_t >
xtd::uptr< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
 
virtual xtd::string to_string () const noexcept
 Returns a xtd::string that represents the current object.
 
virtual int32 compare (const type_t &x, const type_t &y) const =0
 Compares two entities and returns a value indicating whether one is less than, equal to, or greater than the other.
 
- Static Public Member Functions inherited from xtd::object
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
template<typename object_a_t , typename object_b_t >
static bool reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

Constructor & Destructor Documentation

◆ empty_comparer()

template<typename type_t >
xtd::collections::generic::empty_comparer< type_t >::empty_comparer ( )
default

Initializes a new instance of the xtd::collections::generic::comparer <type_t> class.

Member Function Documentation

◆ compare()

template<typename type_t >
int32 xtd::collections::generic::empty_comparer< type_t >::compare ( const type_t &  x,
const type_t &  y 
) const
inlineoverridevirtual

Compares two entities and returns a value indicating whether one is less than, equal to, or greater than the other.

Parameters
xThe first entity to compare.
yThe second entity to compare.
Returns
Always 0.

Implements xtd::collections::generic::icomparer< type_t >.


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