MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / clear

Method clear

Source/ThirdParty/VulkanMemoryAllocator/vk_mem_alloc.h:4662–4670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4660
4661template<typename T, typename AllocatorT, size_t N>
4662void VmaSmallVector<T, AllocatorT, N>::clear(bool freeMemory)
4663{
4664 m_DynamicArray.clear();
4665 if (freeMemory)
4666 {
4667 m_DynamicArray.shrink_to_fit();
4668 }
4669 m_Count = 0;
4670}
4671
4672template<typename T, typename AllocatorT, size_t N>
4673void VmaSmallVector<T, AllocatorT, N>::insert(size_t index, const T& src)

Callers 4

~VmaPoolAllocatorMethod · 0.45
ClearMethod · 0.45
CleanupAfterFreeMethod · 0.45
DefragmentPassEndMethod · 0.45

Calls 1

shrink_to_fitMethod · 0.80

Tested by

no test coverage detected