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 {
24 template<typename type_t, typename equatable_t>
26 public:
28
34 friend bool operator ==(const type_t& lhs, const type_t& rhs) noexcept {return lhs.equals(rhs);}
39 friend bool operator !=(const type_t& lhs, const type_t& rhs) noexcept {return !operator ==(lhs, rhs);}
41 private:
42 friend equatable_t;
43 equality_operators() = default;
44 };
45}
Internal comparable operators definition.
Definition equality_operators.hpp:25
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:34
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:39
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10