|
Libosmium
2.22.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <minmax.hpp>
Public Member Functions | |
| max_op (T start_value=max_op_start_value< T >()) | |
| void | update (T value) noexcept |
| T | operator() () const noexcept |
Private Attributes | |
| T | m_value |
Class for calculating the maximum of a bunch of values. Works with any numeric type.
Usage:
max_op<int> x; x.update(27); x.update(12); auto max = x.get(); // 27
|
inlineexplicit |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |