OpenVPN 3 Core Library
|
Go to the source code of this file.
Namespaces | |
namespace | openvpn |
namespace | openvpn::numeric_util |
Functions | |
template<typename OutT , typename InT > | |
OutT | openvpn::numeric_util::clamp_to_typerange (InT inVal) |
Clamps the input value to the legal range for the output type. | |
template<typename OutT , typename InT > | |
OutT | openvpn::numeric_util::clamp_to_default (InT inVal, OutT defVal) |
Adjusts the input value to the default if the input value exceeds the range of the output type. | |
template<typename OutT , typename InT , typename FuncT > | |
OutT | openvpn::numeric_util::clamp_notify (InT inVal, FuncT cb) |
Calls FuncT cb if the input value exceeds the range of the output type. | |