Przeglądaj źródła

doc: nth_argument (core)

Michele Caini 3 lat temu
rodzic
commit
cf2566ff74
1 zmienionych plików z 13 dodań i 0 usunięć
  1. 13 0
      docs/md/core.md

+ 13 - 0
docs/md/core.md

@@ -27,6 +27,7 @@
     * [Is applicable](#is-applicable)
     * [Constness as](#constness-as)
     * [Member class type](#member-class-type)
+    * [N-th argument](#n-th-argument)
     * [Integral constant](#integral-constant)
     * [Tag](#tag)
     * [Type list and value list](#type-list-and-value-list)
@@ -715,6 +716,18 @@ template<typename Member>
 using clazz = entt::member_class_t<Member>;
 ```
 
+### N-th argument
+
+An utility to quickly find the n-th argument of a function, member function or
+data member (for blind operations on opaque types):
+
+```cpp
+using type = entt::nt_argument_t<1u, &clazz::member>;
+```
+
+Disambiguation of overloaded functions is the responsibility of the user, should
+it be needed.
+
 ### Integral constant
 
 Since `std::integral_constant` may be annoying because of its form that requires