1#ifndef INCLUDE_ADD_WITH_SATURATE_H_
2#define INCLUDE_ADD_WITH_SATURATE_H_
37template <
class T,
class U>
39 static_assert(!std::is_signed<T>::value,
"values must be unsigned");
40 static_assert(!std::is_signed<U>::value,
"values must be unsigned");
46 return std::numeric_limits<T>::max();
52template <
class T,
class U>
T AddWithSaturate(T a, U b)
Definition: add_with_saturate.h:38
struct result result
Definition: result.h:34