#include <sliding_window.hpp>
◆ SlidingWindowMax()
template<std::integral T>
- Parameters
-
size | The maximum size of the sliding window. |
◆ get_max()
template<std::integral T>
Retrieves the maximum value within the current window.
- Returns
- An optional containing the maximum value if the window is not empty; otherwise, an empty optional.
◆ size()
template<std::integral T>
Returns the current size of the sliding window.
- Returns
- The current size of the sliding window, which may be less than the maximum size.
◆ update()
template<std::integral T>
Updates the sliding window with a new value.
- Parameters
-
value | The new value to be added to the window. |
The documentation for this class was generated from the following file: