HistoricalBuffer now uses a Buffer backend for accountability

This commit is contained in:
Paul Ferrand 2019-12-14 00:43:22 +01:00
parent 8d48c73b48
commit 2bbde74cac

View file

@ -1,4 +1,4 @@
#include <vector>
#include "Buffer.h"
#include "SIMDHelpers.h"
#include "absl/types/span.h"
@ -57,7 +57,7 @@ public:
return mean<ValueType>(buffer);
}
private:
std::vector<ValueType> buffer;
Buffer<ValueType> buffer;
size_t size { 0 };
size_t index { 0 };
};