MCPcopy Create free account
hub / github.com/covscript/covscript / make_constant

Method make_constant

include/covscript/core/variable.hpp:932–938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930
931 template <typename T, typename... ArgsT>
932 static any make_constant(ArgsT &&...args)
933 {
934 proxy *dat = get_allocator().alloc();
935 dat->protect_level = 2;
936 dat->data.construct_store<cs_impl::var_storage_t<T>>(std::forward<ArgsT>(args)...);
937 return any(dat);
938 }
939
940 template <typename T, typename... ArgsT>
941 static any make_single(ArgsT &&...args)

Callers

nothing calls this directly

Calls 2

allocMethod · 0.80
anyClass · 0.70

Tested by

no test coverage detected