Просмотр исходного кода

doc: extended meta setters/getters

skypjack 1 неделя назад
Родитель
Сommit
a755caa322
2 измененных файлов с 5 добавлено и 2 удалено
  1. 0 2
      TODO
  2. 5 0
      docs/md/meta.md

+ 0 - 2
TODO

@@ -29,7 +29,5 @@ TODO:
 * redesign snapshot as a whole
 * explore "runtime" mode for hashed string where the source is copied internally
 * storage: shrink_to_fit does not work with reentrant destructor?
-* make meta_any buffer size configurable (propagate to any)
 * test trivially_destructible optimization
 * finish the imgui viewer/editor!
-* document additional arguments to meta setters/getters

+ 5 - 0
docs/md/meta.md

@@ -139,6 +139,11 @@ generally used to create the following:
   entt::meta_factory<my_type>{}.data<nullptr, &my_type::data_member>("member"_hs);
   ```
 
+  Setters and getters take any number of arguments, making the meta member more
+  like a function than a _true member_, while still retaining its nature.<br/>
+  This is especially convenient when constructing complex members or indexing
+  values into underlying structures of various kinds.
+
 * _Member functions_. Meta member functions are actual member functions of the
   underlying type but also plain free functions. From the point of view of the
   client, all the functions associated with the reflected type appear as if they