MCPcopy Create free account
hub / github.com/apache/trafficserver / Ptr

Method Ptr

include/tscore/Ptr.h:207–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205//
206////////////////////////////////////////////////////////////////////////
207template <class T> inline Ptr<T>::Ptr(T *ptr /* = 0 */) : m_ptr(ptr)
208{
209 if (m_ptr) {
210 m_ptr->refcount_inc();
211 }
212}
213
214template <class T> inline Ptr<T>::Ptr(const Ptr<T> &src) : m_ptr(src.m_ptr)
215{

Callers

nothing calls this directly

Calls 1

refcount_incMethod · 0.80

Tested by

no test coverage detected