xtd 0.2.0
equality_operators.hpp
Go to the documentation of this file.
1
4#pragma once
5
7namespace xtd {
9 namespace extensions {
26 template<class type_t, class 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 !lhs.equals(rhs);}
43
44 private:
45 friend equatable_t;
46 equality_operators() = default;
47 };
48 }
49}
Internal equality 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