MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / ~SmallVector

Method ~SmallVector

source/core/StarSmallVector.hpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

freeFunction · 0.70

Tested by

no test coverage detected