shared_ptr观察者20.8.2.2.5 C++ 14最终草案(n4296)
long use_count() const noexcept; Run Code Online (Sandbox Code Playgroud) 返回:共享所有权的shared_ptr对象数,或者为空时为0 .*this*this*this [注意:use_count()效率不一定. - 结束说明]
long use_count() const noexcept;
返回:共享所有权的shared_ptr对象数,或者为空时为0 .*this*this*this
shared_ptr
*this
[注意:use_count()效率不一定. - 结束说明]
use_count()
c++ shared-ptr c++14
c++ ×1
c++14 ×1
shared-ptr ×1