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 "PolyVoxForwardDeclarations.h"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
namespace PolyVox
|
namespace PolyVox
|
||||||
{
|
{
|
||||||
|
@ -39,10 +39,7 @@ namespace PolyVox
|
|||||||
template <uint32_t Size,typename StorageType, typename OperationType>
|
template <uint32_t Size,typename StorageType, typename OperationType>
|
||||||
Vector<Size,StorageType,OperationType>::Vector(StorageType tFillValue)
|
Vector<Size,StorageType,OperationType>::Vector(StorageType tFillValue)
|
||||||
{
|
{
|
||||||
for(uint32_t ct = 0; ct < Size; ct++)
|
std::fill(m_tElements, m_tElements + Size, tFillValue);
|
||||||
{
|
|
||||||
m_tElements[ct] = tFillValue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user