|
sanisizer
Sanitize sizes to avoid integer overflow
|
Integer constant. More...
#include <Constant.hpp>
Public Types | |
| typedef Integer_ | Integer |
Static Public Attributes | |
| static constexpr Integer_ | value = value_ |
Integer constant.
| Integer_ | Type of the integer. |
| value_ | Value of the integer, known at compile time. This should be non-negative. |
The aim is to provide a mechanism to detect a compile-time constant, allowing developers to reorganize their calculations to push more work to compile time. This enables some optimizations in functions like sum() and product().
| Integer_ sanisizer::Constant< Integer_, value_ >::Integer |
Type of the integer.
|
staticconstexpr |
Value of the constant integer, known at compile time. This will be non-negative.