delegate: discard the no longer necessary operator!=

This commit is contained in:
skypjack
2026-01-08 11:31:40 +01:00
parent 16a8c25bd6
commit 55a6fd65aa

View File

@@ -285,19 +285,6 @@ private:
delegate_type *fn{};
};
/**
* @brief Compares the contents of two delegates.
* @tparam Ret Return type of a function type.
* @tparam Args Types of arguments of a function type.
* @param lhs A valid delegate object.
* @param rhs A valid delegate object.
* @return True if the two contents differ, false otherwise.
*/
template<typename Ret, typename... Args>
[[nodiscard]] bool operator!=(const delegate<Ret(Args...)> &lhs, const delegate<Ret(Args...)> &rhs) noexcept {
return !(lhs == rhs);
}
/**
* @brief Deduction guide.
* @tparam Candidate Function or member to connect to the delegate.