MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / Own

Function Own

libapp2sys/prebuilt/include/google/protobuf/arena.h:472–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470 // Adds |object| to a list of heap-allocated objects to be freed with |delete|
471 // when the arena is destroyed or reset.
472 template <typename T> GOOGLE_ATTRIBUTE_NOINLINE
473 void Own(T* object) {
474 OwnInternal(object, google::protobuf::internal::is_convertible<T*, ::google::protobuf::Message*>());
475 }
476
477 // Adds |object| to a list of objects whose destructors will be manually
478 // called when the arena is destroyed or reset. This differs from Own() in

Callers

nothing calls this directly

Calls 1

OwnInternalFunction · 0.85

Tested by

no test coverage detected