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

Method make_single

include/covscript/core/variable.hpp:941–947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939
940 template <typename T, typename... ArgsT>
941 static any make_single(ArgsT &&...args)
942 {
943 proxy *dat = get_allocator().alloc();
944 dat->protect_level = 3;
945 dat->data.construct_store<cs_impl::var_storage_t<T>>(std::forward<ArgsT>(args)...);
946 return any(dat);
947 }
948
949 constexpr any() = default;
950

Callers

nothing calls this directly

Calls 2

allocMethod · 0.80
anyClass · 0.70

Tested by

no test coverage detected