destory now checks for null

v1
Brett 2024-01-25 10:00:56 -05:00
parent 0fbe3bf228
commit b828f3b200
1 changed files with 2 additions and 1 deletions

View File

@ -231,7 +231,8 @@ namespace blt
template<class U> template<class U>
inline void destroy(U* p) inline void destroy(U* p)
{ {
p->~U(); if (p)
p->~U();
} }
[[nodiscard]] inline size_t max_size() const [[nodiscard]] inline size_t max_size() const