expired (),判断计数器是否为0。内部实现return pn.use_count() == 0;,使用前判断 · lock(),第一主题的第四点,夺取主动权,晋升成shared_ptr() · reset() ...
確定! 回上一頁