Replaced loop with fill.
This commit is contained in:
parent
741234e4a5
commit
d305038c27
@ -29,10 +29,12 @@ freely, subject to the following restrictions:
|
||||
|
||||
#include "PolyVoxForwardDeclarations.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
|
||||
namespace PolyVox
|
||||
{
|
||||
|
@ -39,10 +39,7 @@ namespace PolyVox
|
||||
template <uint32_t Size,typename StorageType, typename OperationType>
|
||||
Vector<Size,StorageType,OperationType>::Vector(StorageType tFillValue)
|
||||
{
|
||||
for(uint32_t ct = 0; ct < Size; ct++)
|
||||
{
|
||||
m_tElements[ct] = tFillValue;
|
||||
}
|
||||
std::fill(m_tElements, m_tElements + Size, tFillValue);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user