xtd 0.2.0
Loading...
Searching...
No Matches
empty_comparer.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "icomparer.hpp"
6#include "../../object.hpp"
7
9namespace xtd {
11 namespace collections {
13 namespace generic {
29 template<typename type_t>
30 class empty_comparer : public object, public icomparer<type_t> {
31 public:
33
36 empty_comparer() = default;
38
40
46 int32 compare(const type_t& x, const type_t& y) const override {return 0;}
48 };
49 }
50 }
51}
Provides an empty comparer class.
Definition empty_comparer.hpp:30
empty_comparer()=default
Initializes a new instance of the xtd::collections::generic::comparer <type_t> class.
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,...
Definition empty_comparer.hpp:46
Exposes a method that compares two objects.
Definition icomparer.hpp:30
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
@ y
The Y key.
@ x
The X key.
Contains xtd::collections::generic::icomparer <type_t> interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10