29#include <system_error>
35 return {errno, std::generic_category()};
ValueType max(X &&first)
Definition: gtid.h:103
Definition: system_info_linux.cc:46
bool multiply_overflows(uint64_t lhs, uint64_t rhs)
Return true if multiplying two unsigned 64-bit values would overflow.
Definition: system_info_utils.h:39
std::error_code errno_code()
Return the current errno value in the generic error category.
Definition: system_info_utils.h:34
bool add_overflows(uint64_t lhs, uint64_t rhs)
Return true if adding two unsigned 64-bit values would overflow.
Definition: system_info_utils.h:44