|
sanisizer
Sanitize sizes to avoid integer overflow
|
Cast an integer in a function call. More...
#include <class.hpp>
Public Member Functions | |
| constexpr | Cast (Value_ x) |
| template<typename Output_ > | |
| constexpr | operator Output_ () const |
Cast an integer in a function call.
| Value_ | Type of the integer to be casted from. This may also be an Attestation. |
Consider a function f(T x) for some (non-template) integer T. When calling this function on an integer y, we can use f(Cast(y)), which will automatically cast y to T via cast().
|
inlineconstexpr |
| x | Integer value. |
|
inlineconstexpr |
| Output_ | Type of the integer to be casted to. |
x as an Output_, or an error if the cast fails.