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:
31
docs/api/containers/string/destructor.md
Normal file
31
docs/api/containers/string/destructor.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# String::~String
|
||||
|
||||
```cpp
|
||||
~String();
|
||||
```
|
||||
|
||||
销毁 String 对象,释放所有动态分配的内存。
|
||||
|
||||
**参数:** 无
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
**示例:**
|
||||
```cpp
|
||||
#include "XCEngine/Containers/String.h"
|
||||
|
||||
int main() {
|
||||
{
|
||||
XCEngine::Containers::String s("hello");
|
||||
// s 在作用域结束时自动销毁
|
||||
}
|
||||
// 内存已释放
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [String 总览](string.md) - 返回类总览
|
||||
Reference in New Issue
Block a user