1#ifndef SANISIZER_CAP_HPP
2#define SANISIZER_CAP_HPP
28template<
typename Dest_,
typename Value_>
29constexpr Dest_
cap(Value_ x) {
30 static_assert(std::is_integral<Dest_>::value);
Signedness-safe integer comparisons.
Generics for operating on integer representations.
Sanitize sizes to avoid integer overflow.
Definition Bounded.hpp:15
constexpr auto get_value(const Value_ x)
Definition generics.hpp:23
constexpr bool is_greater_than_or_equal(Left_ left, Right_ right)
Definition comparisons.hpp:107
constexpr auto get_max()
Definition generics.hpp:39
constexpr Dest_ cap(Value_ x)
Definition cap.hpp:29