Michele Caini 4 лет назад
Родитель
Сommit
f48dbd0e19
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      src/entt/resource/handle.hpp

+ 8 - 0
src/entt/resource/handle.hpp

@@ -195,6 +195,14 @@ template<typename Res, typename Other>
     return lhs.operator->() == rhs.operator->();
 }
 
+/**
+ * @brief Compares two handles.
+ * @tparam Res Type of resource managed by the first handle.
+ * @tparam Other Type of resource managed by the second handle.
+ * @param lhs A valid handle.
+ * @param rhs A valid handle.
+ * @return False if both handles refer to the same registry, true otherwise.
+ */
 template<typename ILhs, typename IRhs>
 [[nodiscard]] bool operator!=(const resource_handle<ILhs> &lhs, const resource_handle<IRhs> &rhs) ENTT_NOEXCEPT {
     return !(lhs == rhs);