MCPcopy Create free account
hub / github.com/NetSys/bess / DefaultConstructor

Method DefaultConstructor

core/shared_obj.h:117–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116 template <typename T>
117 static std::shared_ptr<T> DefaultConstructor() {
118 return std::shared_ptr<T>(new T());
119 }
120
121 private:
122 using SharedObjectKey = std::pair<std::type_index, std::string>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected