xtd 0.2.0
Loading...
Searching...
No Matches
icomparable.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "interface.hpp"
6#include "types.hpp"
8
10namespace xtd {
20 template <typename type_t>
21 class icomparable : public interface, public comparison_operators<type_t, icomparable<type_t>> {
22 public:
24
35 virtual int32 compare_to(const type_t& obj) const noexcept = 0;
37 };
38}
Internal comparable operators definition.
Definition comparison_operators.hpp:28
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition icomparable.hpp:21
virtual int32 compare_to(const type_t &obj) const noexcept=0
Compares the current instance with another object of the same type.
Represent an interface class.
Definition interface.hpp:31
Contains xtd::comparison_operators class.
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
Contains xtd::interface interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd fundamental types.