Struct meta_function_descriptor< Type, Ret Class::* >

Synopsis

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

template<typename Type, typename Ret, typename Class>
struct meta_function_descriptor<Type, Ret Class::*>

Description

Meta function descriptor.

Template Parameters

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

Class - Actual owner of the data member.

Ret - Data member type.

Source

Lines 66-77 in src/entt/meta/utility.hpp.

template<typename Type, typename Ret, typename Class>
struct meta_function_descriptor<Type, Ret Class::*> {
    /*! @brief Meta data return type. */
    using return_type = Ret &;
    /*! @brief Meta data arguments. */
    using args_type = std::conditional_t<std::is_base_of_v<Class, Type>, type_list<>, type_list<Class &>>;

    /*! @brief True if the meta data is const, false otherwise. */
    static constexpr auto is_const = false;
    /*! @brief True if the meta data is static, false otherwise. */
    static constexpr auto is_static = !std::is_base_of_v<Class, Type>;
};





Add Discussion

Log in to comment