xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
extensions
equality_operators.hpp
Go to the documentation of this file.
1
4
#pragma once
5
7
namespace
xtd
{
9
namespace
extensions
{
26
template
<
typename
type_t,
typename
equatable_t>
27
class
equality_operators {
28
public
:
30
36
friend
auto
operator ==
(
const
type_t& lhs,
const
type_t& rhs)
noexcept
->
bool
{
return
lhs.equals(rhs);}
41
friend
auto
operator !=
(
const
type_t& lhs,
const
type_t& rhs)
noexcept
->
bool
{
return
!lhs.equals(rhs);}
43
44
private
:
45
friend
equatable_t;
46
equality_operators
() =
default
;
47
};
48
}
49
}
xtd::extensions::equality_operators
Internal equality operators definition.
Definition
equality_operators.hpp:27
xtd::extensions::equality_operators::operator==
friend auto operator==(const type_t &lhs, const type_t &rhs) noexcept -> bool
Equal to operator with specidied lhs ans rhs values.
Definition
equality_operators.hpp:36
xtd::extensions::equality_operators::operator!=
friend auto operator!=(const type_t &lhs, const type_t &rhs) noexcept -> bool
Not equal to operator with specidied lhs ans rhs values.
Definition
equality_operators.hpp:41
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.