doc: update doc of the runtime reflection system (close #641)

This commit is contained in:
Michele Caini
2021-01-26 08:41:41 +01:00
parent 4b5c2c85a5
commit 6eaefbe25c

View File

@@ -240,10 +240,10 @@ To search for a reflected type there are a few options:
auto by_type = entt::resolve<my_type>();
// lookup of a reflected type by identifier
auto by_id = entt::resolve_id("reflected_type"_hs);
auto by_id = entt::resolve("reflected_type"_hs);
// lookup of a reflected type by type id
auto by_type_id = entt::resolve_type(entt::type_hash<my_type>::value());
// lookup of a reflected type by type info
auto by_type_id = entt::resolve(entt::type_id<my_type>());
```
There exits also an overload of the `resolve` function to use to iterate all the