MCPcopy Create free account
hub / github.com/DFHack/dfhack / get

Function get

library/include/DataIdentity.h:639–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637 template<typename T>
638 struct DFHACK_EXPORT identity_traits<std::shared_ptr<T>> {
639 static opaque_identity *get() {
640 using type = std::shared_ptr<T>;
641 static std::string name = std::string("shared_ptr<") + typeid(T).name() + ">";
642 static opaque_identity identity(sizeof(type), allocator_fn<type>, name);
643 return &identity;
644 }
645 };
646#endif
647

Callers 1

getMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected