Annotate noexcept and constexpr with HEDLEY, and add interval containment, ChaCha, and the dyadic range tables.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ryan Henry 2026-09-24 20:44:07 -06:00
parent 875f09fec1
commit 0d8a5a8131
97 changed files with 9212 additions and 1159 deletions

View file

@ -152,6 +152,7 @@ template <>
struct make_from_integral_value<dpf::twobit>
{
using integral_type = std::uint8_t;
HEDLEY_NO_THROW
constexpr dpf::twobit operator()(integral_type val) const noexcept
{
return dpf::to_twobit(val);
@ -184,8 +185,11 @@ class numeric_limits<dpf::twobit> : public numeric_limits<std::uint8_t>
public:
static constexpr int digits = 2;
static constexpr int digits10 = 0;
HEDLEY_NO_THROW
static constexpr dpf::twobit min() noexcept { return dpf::twobit::zero; }
HEDLEY_NO_THROW
static constexpr dpf::twobit max() noexcept { return dpf::twobit::three; }
HEDLEY_NO_THROW
static constexpr dpf::twobit lowest() noexcept { return min(); }
};