xtd 0.2.0
Loading...
Searching...
No Matches
equality_operators.hpp
Go to the documentation of this file.
1
4#pragma once
5
7namespace xtd {
9 namespace extensions {
26 template<typename type_t, typename equatable_t>
28 public:
30
36 friend bool operator ==(const type_t& lhs, const type_t& rhs) noexcept {return lhs.equals(rhs);}
41 friend bool operator !=(const type_t& lhs, const type_t& rhs) noexcept {return !operator ==(lhs, rhs);}
43 private:
44 friend equatable_t;
45 equality_operators() = default;
46 };
47 }
48}
Internal comparable operators definition.
Definition equality_operators.hpp:27
friend bool operator==(const type_t &lhs, const type_t &rhs) noexcept
Equal to operator with specidied lhs ans rhs values.
Definition equality_operators.hpp:36
friend bool operator!=(const type_t &lhs, const type_t &rhs) noexcept
Not equal to operator with specidied lhs ans rhs values.
Definition equality_operators.hpp:41
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10