mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-15 01:08:31 +00:00
Merge branch 'master' of https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
This commit is contained in:
commit
9104ef3d45
1 changed files with 3 additions and 2 deletions
|
@ -4336,8 +4336,9 @@ VmaSmallVector<T, AllocatorT, N>::VmaSmallVector(size_t count, const AllocatorT&
|
||||||
template<typename T, typename AllocatorT, size_t N>
|
template<typename T, typename AllocatorT, size_t N>
|
||||||
void VmaSmallVector<T, AllocatorT, N>::push_back(const T& src)
|
void VmaSmallVector<T, AllocatorT, N>::push_back(const T& src)
|
||||||
{
|
{
|
||||||
resize(m_Count + 1);
|
const size_t newIndex = size();
|
||||||
data()[m_Count] = src;
|
resize(newIndex + 1);
|
||||||
|
data()[newIndex] = src;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T, typename AllocatorT, size_t N>
|
template<typename T, typename AllocatorT, size_t N>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue