Function convert

Synopsis

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

meta_any convert(const void *instance) const

Description

Converts an instance to the underlying type.

Parameters

instance - The instance to convert.

Return
An opaque pointer to the instance to convert.

Source

Lines 680-682 in src/entt/meta/meta.hpp.

[[nodiscard]] meta_any convert(const void *instance) const {
    return node->conv(instance);
}





Add Discussion

Log in to comment