数据结构
xiongpursuit88
这个作者很懒,什么都没留下…
展开
-
C++11智能指针之weak_ptr
Weak shared pointer比较特殊的函数有lock和expiredstd::weak_ptr::lockshared_ptr lock() const noexcept;Lock and restore weak_ptr.Returns a shared_ptr with the information preserved by the weak_ptr object if it is not expired.If the weak_ptr object ha原创 2022-12-03 09:27:39 · 548 阅读 · 0 评论 -
C++11智能指针之shared_ptr
共享指针,多个shared_ptr对象可以绑定同一块堆空间。原创 2022-11-29 19:41:22 · 203 阅读 · 0 评论 -
C++11智能指针之unique_ptr
只能独一无二地拥有某堆空间的对象。原创 2022-11-28 17:50:57 · 536 阅读 · 0 评论 -
C++ std::unordered_map使用介绍
unordered_map的介绍,使用以及与map的对比原创 2022-11-24 10:14:46 · 307 阅读 · 0 评论