|
sanisizer
Sanitize sizes to avoid integer overflow
|
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) |
Safe casts of integer size.