1#ifndef SANISIZER_CONSTANT_HPP
2#define SANISIZER_CONSTANT_HPP
23template<
typename Integer_, Integer_ value_>
25 static_assert(std::is_integral<Integer_>::value);
26 static_assert(value_ >= 0);
37 static constexpr Integer_
value = value_;
45template<
typename Value_>
50 static constexpr bool value =
false;
59template<
typename Integer_, Integer_ value_>
64 static constexpr bool value =
true;
70template<
typename Integer_, Integer_ value_>
72 static constexpr bool value =
true;
Sanitize sizes to avoid integer overflow.
Definition Bounded.hpp:15
Integer constant.
Definition Constant.hpp:24
Integer_ Integer
Definition Constant.hpp:31
static constexpr Integer_ value
Definition Constant.hpp:37
Definition Constant.hpp:46
static constexpr bool value
Definition Constant.hpp:50