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:
parent
875f09fec1
commit
0d8a5a8131
97 changed files with 9212 additions and 1159 deletions
|
|
@ -157,6 +157,7 @@ template <>
|
|||
struct make_from_integral_value<dpf::nyble>
|
||||
{
|
||||
using integral_type = std::uint8_t;
|
||||
HEDLEY_NO_THROW
|
||||
constexpr dpf::nyble operator()(integral_type val) const noexcept
|
||||
{
|
||||
return dpf::to_nyble(val);
|
||||
|
|
@ -189,8 +190,11 @@ class numeric_limits<dpf::nyble> : public numeric_limits<std::uint8_t>
|
|||
public:
|
||||
static constexpr int digits = 4;
|
||||
static constexpr int digits10 = 1;
|
||||
HEDLEY_NO_THROW
|
||||
static constexpr dpf::nyble min() noexcept { return dpf::nyble::zero; }
|
||||
HEDLEY_NO_THROW
|
||||
static constexpr dpf::nyble max() noexcept { return dpf::nyble{15}; }
|
||||
HEDLEY_NO_THROW
|
||||
static constexpr dpf::nyble lowest() noexcept { return min(); }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue