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

Function ptr_cast

include/tscore/IntrusivePtr.h:286–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284*/
285template <typename T, typename U>
286IntrusivePtr<T>
287ptr_cast(IntrusivePtr<U> const &src)
288{
289 return IntrusivePtr<T>(static_cast<T *>(src.get()));
290}
291/* ----------------------------------------------------------------------- */
292/* ----------------------------------------------------------------------- */
293/** Default policy class for intrusive pointers.

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected