Преглед изворни кода

doc: std::remove_const_t<std::remove_reference_t<...>> -> std::remove_cvref_t<...>

skypjack пре 2 месеци
родитељ
комит
3390e3c563
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      docs/md/core.md

+ 3 - 3
docs/md/core.md

@@ -635,7 +635,7 @@ These are the information made available by `type_info`:
   This is also an alias for the following:
 
   ```cpp
-  auto idx = entt::type_index<std::remove_const_t<std::remove_reference_t<a_type>>>::value();
+  auto idx = entt::type_index<std::remove_cvref_t<a_type>>::value();
   ```
 
 * The hash value associated with a given type:
@@ -647,7 +647,7 @@ These are the information made available by `type_info`:
   This is also an alias for the following:
 
   ```cpp
-  auto hash = entt::type_hash<std::remove_const_t<std::remove_reference_t<a_type>>>::value();
+  auto hash = entt::type_hash<std::remove_cvref_t<a_type>>::value();
   ```
 
 * The name associated with a given type:
@@ -659,7 +659,7 @@ These are the information made available by `type_info`:
   This is also an alias for the following:
 
   ```cpp
-  auto name = entt::type_name<std::remove_const_t<std::remove_reference_t<a_type>>>::value();
+  auto name = entt::type_name<std::remove_cvref_t<a_type>>::value();
   ```
 
 Where all accessed features are available at compile-time, the `type_info` class