OpenVPN 3 Core Library
Loading...
Searching...
No Matches
numeric_util.hpp File Reference
#include <cstdint>
#include <limits>
#include <type_traits>
#include <functional>
Include dependency graph for numeric_util.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openvpn
 
namespace  openvpn::numeric_util
 

Functions

template<typename OutT , typename InT >
constexpr bool openvpn::numeric_util::is_int_conversion ()
 
template<typename OutT , typename InT >
constexpr bool openvpn::numeric_util::is_int_u2s ()
 
template<typename OutT , typename InT >
constexpr bool openvpn::numeric_util::is_int_s2u ()
 
template<typename OutT , typename InT >
constexpr bool openvpn::numeric_util::is_int_rangesafe ()
 
template<typename OutT , typename InT >
bool openvpn::numeric_util::is_safe_conversion (InT inVal)
 Returns true if the given value can be contained by the out type.