v1
Brett 2023-02-16 00:13:26 -05:00
parent bd5a2b9277
commit c1f3f7f2b8
1 changed files with 2 additions and 1 deletions

View File

@ -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;
} }