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/hashmap/constructor.md
Normal file
31
docs/api/containers/hashmap/constructor.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# HashMap::HashMap
|
||||
|
||||
```cpp
|
||||
HashMap();
|
||||
explicit HashMap(size_t bucketCount, Memory::IAllocator* allocator = nullptr);
|
||||
```
|
||||
|
||||
构造哈希表实例。
|
||||
|
||||
**参数:**
|
||||
- `bucketCount` - 初始桶的数量,默认为 16。若传入 0,则自动调整为 16。
|
||||
- `allocator` - 内存分配器指针,默认为 `nullptr`(使用默认分配器)。
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**复杂度:** O(bucketCount),需要初始化所有桶
|
||||
|
||||
**示例:**
|
||||
|
||||
```cpp
|
||||
XCEngine::Containers::HashMap<int, const char*> map1;
|
||||
|
||||
XCEngine::Containers::HashMap<int, const char*> map2(32);
|
||||
|
||||
auto customAllocator = XCEngine::Memory::GetDefaultAllocator();
|
||||
XCEngine::Containers::HashMap<int, const char*> map3(64, customAllocator);
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [HashMap 总览](hashmap.md) - 返回类总览
|
||||
Reference in New Issue
Block a user