Struct meta_function_descriptor< Type, Ret(*)(Args...)>

Synopsis

#include <src/entt/meta/utility.hpp>

template<typename Type, typename Ret, typename... Args>
struct meta_function_descriptor<Type, Ret(*)(Args...)>

Description

Meta function descriptor.

Template Parameters

Type - Reflected type to which the meta function is associated.

Ret - Function return type.

Args - Function arguments.

Source

Lines 72-83 in src/entt/meta/utility.hpp.

template<typename Type, typename Ret, typename... Args>
struct meta_function_descriptor<Type, Ret(*)(Args...)> {
    /*! @brief Meta function return type. */
    using return_type = Ret;
    /*! @brief Meta function arguments. */
    using args_type = type_list<Args...>;

    /*! @brief True if the meta function is const, false otherwise. */
    static constexpr auto is_const = false;
    /*! @brief True if the meta function is static, false otherwise. */
    static constexpr auto is_static = true;
};





Add Discussion

Log in to comment