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

Method release

include/tscore/ink_memory.h:333–339  ·  view source on GitHub ↗

Release resource from this container. After this call, the resource will @b not cleaned up when this container is destructed. @note Although direct assignment is forbidden due to the non-obvious semantics, a pointer can be moved (@b not copied) from one instance to another using this method. @code new_ptr = old_ptr.release(); @endcode This is by design.

Source from the content-addressed store, hash-verified

331 @return The no longer contained resource.
332 */
333 value_type
334 release()
335 {
336 value_type zret = _r;
337 _r = Traits::initValue();
338 return zret;
339 }
340
341 /** Place a new resource @a rt in the container.
342 Any resource currently contained is destroyed.

Callers 3

ats_scoped_fdMethod · 0.45
ats_scoped_fdClass · 0.45
path_joinFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected