xtd 0.2.0
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<class 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}
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
object()=default
Create a new instance of the ultimate base class object.
Contains xtd::collections::generic::icomparer <type_t> interface.
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
@ y
The Y key.
Definition console_key.hpp:136
@ x
The X key.
Definition console_key.hpp:134
The xtd::collections::generic namespace contains interfaces and classes that define generic collectio...
Definition comparer.hpp:16
The xtd::collections namespace contains interfaces and classes that define various collections of obj...
Definition any_pair.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.