| 105 | |
| 106 | template <typename Element, size_t MaxStackSize> |
| 107 | SmallVector<Element, MaxStackSize>::~SmallVector() { |
| 108 | clear(); |
| 109 | if (isHeapAllocated()) { |
| 110 | free(m_begin, (m_capacity - m_begin) * sizeof(Element)); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | template <typename Element, size_t MaxStackSize> |
| 115 | SmallVector<Element, MaxStackSize>::SmallVector(SmallVector const& other) |