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