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

Signedness-safe integer comparisons. More...

#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 Left_ , typename Right_ >
constexpr bool sanisizer::is_equal (Left_ left, Right_ right)
 
template<typename Left_ , typename Right_ >
constexpr bool sanisizer::is_less_than (Left_ left, Right_ right)
 
template<typename Left_ , typename Right_ >
constexpr bool sanisizer::is_less_than_or_equal (Left_ left, Right_ right)
 
template<typename Left_ , typename Right_ >
constexpr bool sanisizer::is_greater_than (Left_ left, Right_ right)
 
template<typename Left_ , typename Right_ >
constexpr bool sanisizer::is_greater_than_or_equal (Left_ left, Right_ right)
 
template<typename First_ , typename Second_ >
constexpr auto sanisizer::min (First_ first, Second_ second)
 
template<typename First_ , typename Second_ >
constexpr auto sanisizer::max (First_ first, Second_ second)
 

Detailed Description

Signedness-safe integer comparisons.