sanisizer
Sanitize sizes to avoid integer overflow
Loading...
Searching...
No Matches
cap.hpp File Reference

Cap a value at the largest size. More...

#include <limits>
#include "comparisons.hpp"

Go to the source code of this file.

Namespaces

namespace  sanisizer
 Sanitize sizes to avoid integer overflow.
 

Functions

template<typename Size_ , typename Input_ >
constexpr Size_ sanisizer::cap (Input_ x)
 

Detailed Description

Cap a value at the largest size.