Struct poly_inspector
Synopsis
#include <src/entt/poly/poly.hpp>
struct poly_inspector
Description
Inspector class used to infer the type of the virtual table.
Methods
invoke overload | Dummy invocation function (definition only). | |
operator Type && | Generic conversion operator (definition only). |
Source
Lines 20-41 in src/entt/poly/poly.hpp.
struct poly_inspector {
/**
* @brief Generic conversion operator (definition only).
* @tparam Type Type to which conversion is requested.
*/
template <class Type>
operator Type &&() const;
/**
* @brief Dummy invocation function (definition only).
* @tparam Member Index of the function to invoke.
* @tparam Args Types of arguments to pass to the function.
* @param args The arguments to pass to the function.
* @return A poly inspector convertible to any type.
*/
template<auto Member, typename... Args>
poly_inspector invoke(Args &&... args) const;
/*! @copydoc invoke */
template<auto Member, typename... Args>
poly_inspector invoke(Args &&... args);
};