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

@ -57,6 +57,7 @@ class aligned_allocator
template <typename Pointer>
struct deleter
{
HEDLEY_NO_THROW
constexpr void operator()(Pointer p) const noexcept { free(p); }
};
public:
@ -125,6 +126,7 @@ class aligned_allocator
/// @note This function returns the maximum number of elements that can
/// be allocated, not the maximum allocation size in bytes
/// @return The maximum supported allocation size.
HEDLEY_NO_THROW
constexpr size_type max_size() const noexcept
{
return std::numeric_limits<size_type>::max() / sizeof(value_type);