Function make_meta

Synopsis

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

template <typename Type, typename... Args>
meta_any make_meta(Args &&... args)

Description

Constructs a wrapper from a given type, passing it all arguments.

Template Parameters

Type - Type of object to use to initialize the wrapper.

Args - Types of arguments to use to construct the new instance.

Parameters

args - Parameters to use to construct the instance.

Returns
A properly initialized wrapper for an object of the given type.

Source

Lines 578-581 in src/entt/meta/meta.hpp.

template<typename Type, typename... Args>
meta_any make_meta(Args &&... args) {
    return meta_any{std::in_place_type<Type>, std::forward<Args>(args)...};
}





Add Discussion

Log in to comment