MCPcopy Create free account
hub / github.com/ThePhD/sol2 / construct

Method construct

include/sol/raii.hpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 struct default_construct {
35 template <typename T, typename... Args>
36 static void construct(T&& obj, Args&&... args) {
37 typedef meta::unqualified_t<T> Tu;
38 std::allocator<Tu> alloc {};
39 std::allocator_traits<std::allocator<Tu>>::construct(alloc, std::forward<T>(obj), std::forward<Args>(args)...);
40 }
41
42 template <typename T, typename... Args>
43 void operator()(T&& obj, Args&&... args) const {

Callers

nothing calls this directly

Calls 1

constructFunction · 0.85

Tested by

no test coverage detected