RESTinio
|
Helpers for safe truncation of unsigned integers. More...
#include <stdexcept>
#include <type_traits>
#include <limits>
#include <cstddef>
#include <cstdint>
Go to the source code of this file.
Namespaces | |
namespace | restinio |
namespace | restinio::utils |
namespace | restinio::utils::impl |
Functions | |
std::size_t | restinio::utils::impl::uint64_to_size_t (std::uint64_t v) |
Helper function for truncating uint64 to std::size_t with exception if that truncation will lead to data loss. More... | |
Helpers for safe truncation of unsigned integers.
Definition in file safe_uint_truncate.hpp.