Trying
parent
bd5a2b9277
commit
c1f3f7f2b8
|
@ -563,12 +563,13 @@ namespace blt {
|
||||||
template<typename T, int Size>
|
template<typename T, int Size>
|
||||||
class averagizer_o_matic {
|
class averagizer_o_matic {
|
||||||
private:
|
private:
|
||||||
T* data = new T[Size];
|
T* data;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
int m_default = 0;
|
int m_default = 0;
|
||||||
public:
|
public:
|
||||||
averagizer_o_matic(): averagizer_o_matic(0) {}
|
averagizer_o_matic(): averagizer_o_matic(0) {}
|
||||||
explicit averagizer_o_matic(T default_value){
|
explicit averagizer_o_matic(T default_value){
|
||||||
|
data = new T[Size];
|
||||||
for (int i = 0; i < Size; i++){
|
for (int i = 0; i < Size; i++){
|
||||||
data[i] = default_value;
|
data[i] = default_value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue