doc: nth_argument (core)

This commit is contained in:
Michele Caini
2022-05-23 11:47:04 +02:00
parent 619f51518a
commit cf2566ff74

View File

@@ -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