瀏覽代碼

doc: minor changes

Michele Caini 2 年之前
父節點
當前提交
4bedef459e
共有 1 個文件被更改,包括 16 次插入16 次删除
  1. 16 16
      src/entt/entity/entity.hpp

+ 16 - 16
src/entt/entity/entity.hpp

@@ -264,25 +264,25 @@ struct null_t {
 /**
 /**
  * @brief Compares a null object and an identifier of any type.
  * @brief Compares a null object and an identifier of any type.
  * @tparam Entity Type of identifier.
  * @tparam Entity Type of identifier.
- * @param entity Identifier with which to compare.
- * @param other A null object yet to be converted.
+ * @param lhs Identifier with which to compare.
+ * @param rhs A null object yet to be converted.
  * @return False if the two elements differ, true otherwise.
  * @return False if the two elements differ, true otherwise.
  */
  */
 template<typename Entity>
 template<typename Entity>
-[[nodiscard]] constexpr bool operator==(const Entity entity, const null_t other) noexcept {
-    return other.operator==(entity);
+[[nodiscard]] constexpr bool operator==(const Entity lhs, const null_t rhs) noexcept {
+    return rhs.operator==(lhs);
 }
 }
 
 
 /**
 /**
  * @brief Compares a null object and an identifier of any type.
  * @brief Compares a null object and an identifier of any type.
  * @tparam Entity Type of identifier.
  * @tparam Entity Type of identifier.
- * @param entity Identifier with which to compare.
- * @param other A null object yet to be converted.
+ * @param lhs Identifier with which to compare.
+ * @param rhs A null object yet to be converted.
  * @return True if the two elements differ, false otherwise.
  * @return True if the two elements differ, false otherwise.
  */
  */
 template<typename Entity>
 template<typename Entity>
-[[nodiscard]] constexpr bool operator!=(const Entity entity, const null_t other) noexcept {
-    return !(other == entity);
+[[nodiscard]] constexpr bool operator!=(const Entity lhs, const null_t rhs) noexcept {
+    return !(rhs == lhs);
 }
 }
 
 
 /*! @brief Tombstone object for all identifiers.  */
 /*! @brief Tombstone object for all identifiers.  */
@@ -349,25 +349,25 @@ struct tombstone_t {
 /**
 /**
  * @brief Compares a tombstone object and an identifier of any type.
  * @brief Compares a tombstone object and an identifier of any type.
  * @tparam Entity Type of identifier.
  * @tparam Entity Type of identifier.
- * @param entity Identifier with which to compare.
- * @param other A tombstone object yet to be converted.
+ * @param lhs Identifier with which to compare.
+ * @param rhs A tombstone object yet to be converted.
  * @return False if the two elements differ, true otherwise.
  * @return False if the two elements differ, true otherwise.
  */
  */
 template<typename Entity>
 template<typename Entity>
-[[nodiscard]] constexpr bool operator==(const Entity entity, const tombstone_t other) noexcept {
-    return other.operator==(entity);
+[[nodiscard]] constexpr bool operator==(const Entity lhs, const tombstone_t rhs) noexcept {
+    return rhs.operator==(lhs);
 }
 }
 
 
 /**
 /**
  * @brief Compares a tombstone object and an identifier of any type.
  * @brief Compares a tombstone object and an identifier of any type.
  * @tparam Entity Type of identifier.
  * @tparam Entity Type of identifier.
- * @param entity Identifier with which to compare.
- * @param other A tombstone object yet to be converted.
+ * @param lhs Identifier with which to compare.
+ * @param rhs A tombstone object yet to be converted.
  * @return True if the two elements differ, false otherwise.
  * @return True if the two elements differ, false otherwise.
  */
  */
 template<typename Entity>
 template<typename Entity>
-[[nodiscard]] constexpr bool operator!=(const Entity entity, const tombstone_t other) noexcept {
-    return !(other == entity);
+[[nodiscard]] constexpr bool operator!=(const Entity lhs, const tombstone_t rhs) noexcept {
+    return !(rhs == lhs);
 }
 }
 
 
 /**
 /**