修改了一些格式问题

This commit is contained in:
2025-07-27 01:01:05 +08:00
parent 407de7999c
commit 9d1bc4c0e0
2 changed files with 37 additions and 16 deletions

View File

@@ -1724,7 +1724,7 @@ namespace Convention
if constexpr (index == 0)
return sizeof(Element);
else
return sizeof(Element) + _MyNext::ElementOffset<index - 1>();
return sizeof(Element) + _MyNext:: template ElementOffset<index - 1>();
}
template<size_t index>
decltype(auto) GetValue() const noexcept
@@ -1900,6 +1900,12 @@ namespace Convention
GetStaticMyAllocator().destroy(ptr);
GetStaticMyAllocator().deallocate(ptr, 1);
}
protected:
template<typename... Args>
static T* ConstructMyPtr(Args&&... args)
{
return BuildMyPtr(std::forward<Args>(args)...);
}
public:
/**
* @brief 任意匹配的构造函数