MCPcopy Create free account
hub / github.com/alibaba/euler / Create

Method Create

euler/common/refcount.h:129–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128 template <typename... Targs>
129 static RefCountedPtr Create(Targs&&... args) {
130 return RefCountedPtr(new T(std::forward<Targs>(args)...), 0);
131 }
132
133 private:
134 RefCountedPtr(T* ptr, int x) : ptr_(ptr) {

Callers

nothing calls this directly

Calls 1

RefCountedPtrClass · 0.85

Tested by

no test coverage detected