Struct meta_ctx

Synopsis

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

struct meta_ctx

Description

Opaque container for a meta context.

Mentioned in

Methods

bindBinds the meta system to a given context.

Source

Lines 51-62 in src/entt/meta/ctx.hpp.

struct meta_ctx {
    /**
     * @brief Binds the meta system to a 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