v1.0.0-rc.40
This commit is contained in:
@@ -14,6 +14,11 @@ void MovingAverage::Add(float val) {
|
||||
q.push_back(val);
|
||||
}
|
||||
|
||||
void MovingAverage::Add(std::optional<float> val) {
|
||||
if (val)
|
||||
Add(val.value());
|
||||
}
|
||||
|
||||
std::optional<float> MovingAverage::Read() const {
|
||||
std::unique_lock ul(m);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user