Poly base class used to inject functionalities into concepts.
More...
#include <poly.hpp>
|
| template<std::size_t Member, typename... Args> |
| decltype(auto) | invoke (const poly_base &self, Args &&...args) const |
| | Invokes a function from the static virtual table.
|
| |
| template<std::size_t Member, typename... Args> |
| decltype(auto) | invoke (poly_base &self, Args &&...args) |
| | Invokes a function from the static virtual table.
|
| |
template<typename Poly>
struct entt::poly_base< Poly >
Poly base class used to inject functionalities into concepts.
- Template Parameters
-
| Poly | The outermost poly class. |
Definition at line 129 of file poly.hpp.
◆ invoke() [1/2]
template<typename Poly >
template<std::size_t Member, typename... Args>
Invokes a function from the static virtual table.
- Template Parameters
-
| Member | Index of the function to invoke. |
| Args | Types of arguments to pass to the function. |
- Parameters
-
| self | A reference to the poly object that made the call. |
| args | The arguments to pass to the function. |
- Returns
- The return value of the invoked function, if any.
Definition at line 139 of file poly.hpp.
◆ invoke() [2/2]
template<typename Poly >
template<std::size_t Member, typename... Args>
Invokes a function from the static virtual table.
- Template Parameters
-
| Member | Index of the function to invoke. |
| Args | Types of arguments to pass to the function. |
- Parameters
-
| self | A reference to the poly object that made the call. |
| args | The arguments to pass to the function. |
- Returns
- The return value of the invoked function, if any.
Definition at line 151 of file poly.hpp.
The documentation for this struct was generated from the following file: