1#ifndef SANISIZER_CAP_HPP
2#define SANISIZER_CAP_HPP
26template<
typename Size_,
typename Input_>
27constexpr Size_
cap(Input_ x) {
28 constexpr Size_ maxed = std::numeric_limits<Size_>::max();
Signedness-safe integer comparisons.
Sanitize sizes to avoid integer overflow.
Definition arithmetic.hpp:14
constexpr Size_ cap(Input_ x)
Definition cap.hpp:27
constexpr bool is_greater_than(Left_ l, Right_ r)
Definition comparisons.hpp:65