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

Safe casts of integer size. More...

#include "attest.hpp"

Go to the source code of this file.

Namespaces

namespace  sanisizer
 Sanitize sizes to avoid integer overflow.
 

Functions

template<typename Size_ , typename Value_ >
constexpr auto sanisizer::can_cast (Value_ x)
 
template<typename Dest_ , typename Value_ >
constexpr Dest_ sanisizer::cast (Value_ x)
 

Detailed Description

Safe casts of integer size.