|
|
@@ -491,6 +491,18 @@ auto info = entt::type_id<a_type>();
|
|
|
|
|
|
These are the information made available by this object:
|
|
|
|
|
|
+* The index associated with a given type:
|
|
|
+
|
|
|
+ ```cpp
|
|
|
+ auto idx = entt::type_id<a_type>().index();
|
|
|
+ ```
|
|
|
+
|
|
|
+ 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();
|
|
|
+ ```
|
|
|
+
|
|
|
* The hash value associated with a given type:
|
|
|
|
|
|
```cpp
|
|
|
@@ -500,7 +512,7 @@ These are the information made available by this object:
|
|
|
This is also an alias for the following:
|
|
|
|
|
|
```cpp
|
|
|
- auto hash = entt::type_hash<a_type>::value();
|
|
|
+ auto hash = entt::type_hash<std::remove_const_t<std::remove_reference_t<a_type>>>::value();
|
|
|
```
|
|
|
|
|
|
* The name associated with a given type:
|
|
|
@@ -512,7 +524,7 @@ These are the information made available by this object:
|
|
|
This is also an alias for the following:
|
|
|
|
|
|
```cpp
|
|
|
- auto name = entt::type_name<a_type>::value();
|
|
|
+ auto name = entt::type_name<std::remove_const_t<std::remove_reference_t<a_type>>>::value();
|
|
|
```
|
|
|
|
|
|
Where all accessed features are available at compile-time, the `type_info` class
|