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 <type_traits>
#include "utils.hpp"
#include "attest.hpp"

Go to the source code of this file.

Namespaces

namespace  sanisizer
 Sanitize sizes to avoid integer overflow.
 

Functions

template<typename Dest_ , typename Value_ >
constexpr Dest_ sanisizer::cap (Value_ x)
 

Detailed Description

Cap a value at the largest size.