xtd 0.2.0
Loading...
Searching...
No Matches
icomparable.h
Go to the documentation of this file.
1
4#pragma once
5#include "interface.h"
6#include "types.h"
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.h:28
Defines a generalized comparison method that a value type or class implements to create a type-specif...
Definition icomparable.h: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.h:31
Contains xtd::comparison_operators class.
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
Contains xtd::interface interface.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd fundamental types.