xtd 0.2.0
Loading...
Searching...
No Matches
icomparable.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "interface.hpp"
7#include "int32.hpp"
8
10namespace xtd {
21 template<class type_t>
22 class icomparable interface_, public extensions::comparison_operators<type_t, icomparable<type_t>> {
23 public:
25
37 virtual int32 compare_to(const type_t& obj) const noexcept = 0;
39 };
40}
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition icomparable.hpp:22
virtual int32 compare_to(const type_t &obj) const noexcept=0
Compares the current instance with another object of the same type.
Contains xtd::extensions::comparison_operators class.
#define interface_
This keyword is use to represent an interface.
Definition interface.hpp:58
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
Contains xtd::int32 type.
Contains xtd::interface interface.
The xtd::extensions namespace contains interface extensions.
Definition comparison_operators.hpp:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8