Przeglądaj źródła

doc: minor changes

Michele Caini 2 lat temu
rodzic
commit
42529d0ab2
2 zmienionych plików z 5 dodań i 3 usunięć
  1. 4 2
      src/entt/core/memory.hpp
  2. 1 1
      src/entt/entity/entity.hpp

+ 4 - 2
src/entt/core/memory.hpp

@@ -12,7 +12,8 @@
 namespace entt {
 
 /**
- * @brief Checks whether a value is a power of two or not.
+ * @brief Checks whether a value is a power of two or not (waiting for C++20 and
+ * `std::has_single_bit`).
  * @param value A value that may or may not be a power of two.
  * @return True if the value is a power of two, false otherwise.
  */
@@ -21,7 +22,8 @@ namespace entt {
 }
 
 /**
- * @brief Computes the smallest power of two greater than or equal to a value.
+ * @brief Computes the smallest power of two greater than or equal to a value
+ * (waiting for C++20 and `std::bit_ceil`).
  * @param value The value to use.
  * @return The smallest power of two greater than or equal to the given value.
  */

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

@@ -16,7 +16,7 @@ namespace entt {
 
 namespace internal {
 
-// waiting for C++20 (and std::popcount)
+// waiting for C++20 and std::popcount
 template<typename Type>
 constexpr int popcount(Type value) noexcept {
     return value ? (int(value & 1) + popcount(value >> 1)) : 0;