Struct meta_ctx

Synopsis

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

struct meta_ctx

Description

Opaque container for a meta context.

TURN_OFF_DOXYGEN

Mentioned in

Methods

bindBinds the meta system to the given context.

Source

Lines 258-269 in src/entt/meta/meta.hpp.

struct meta_ctx {
    /**
     * @brief Binds the meta system to the given context.
     * @param other A valid context to which to bind.
     */
    static void bind(meta_ctx other) ENTT_NOEXCEPT {
        internal::meta_context::global = other.ctx;
    }

private:
    internal::meta_type_node **ctx{&internal::meta_context::local};
};





Add Discussion

Log in to comment