destory now checks for null
parent
0fbe3bf228
commit
b828f3b200
|
@ -231,7 +231,8 @@ namespace blt
|
|||
template<class U>
|
||||
inline void destroy(U* p)
|
||||
{
|
||||
p->~U();
|
||||
if (p)
|
||||
p->~U();
|
||||
}
|
||||
|
||||
[[nodiscard]] inline size_t max_size() const
|
||||
|
|
Loading…
Reference in New Issue