MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / weak_ptr

Method weak_ptr

system/lib/libcxx/include/__memory/shared_ptr.h:1283–1286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1281
1282template <class _Tp>
1283inline weak_ptr<_Tp>::weak_ptr(weak_ptr const& __r) _NOEXCEPT : __ptr_(__r.__ptr_), __cntrl_(__r.__cntrl_) {
1284 if (__cntrl_)
1285 __cntrl_->__add_weak();
1286}
1287
1288template <class _Tp>
1289template <class _Yp, __enable_if_t<__compatible_with<_Yp, _Tp>::value, int> >

Callers

nothing calls this directly

Calls 3

__add_weakMethod · 0.80
lockMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected