fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
This commit is contained in:
27
docs/api/containers/hashmap/destructor.md
Normal file
27
docs/api/containers/hashmap/destructor.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# HashMap::~HashMap
|
||||
|
||||
```cpp
|
||||
~HashMap();
|
||||
```
|
||||
|
||||
析构函数,清空所有元素并释放资源。
|
||||
|
||||
**参数:** 无
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**复杂度:** O(n),需要清空所有桶中的元素
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
{
|
||||
XCEngine::Containers::HashMap<int, std::string> map;
|
||||
map.Insert(1, "hello");
|
||||
map.Insert(2, "world");
|
||||
} // map 在此自动析构,所有资源被正确释放
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [HashMap 总览](hashmap.md) - 返回类总览
|
||||
Reference in New Issue
Block a user