xo-alloc2: mark Allocator.expand() noexcept

This commit is contained in:
Roland Conybeare 2025-12-12 13:12:56 -05:00
commit 07569add32
5 changed files with 19 additions and 19 deletions

View file

@ -108,7 +108,7 @@ namespace xo {
* to size at least @p z
* In practice will round up to a multiple of hugepage size (2MB)
**/
virtual bool expand(Opaque d, std::size_t z) const = 0;
virtual bool expand(Opaque d, std::size_t z) const noexcept = 0;
/** allocate @p z bytes of memory from allocator @p d. **/
virtual std::byte * alloc(Opaque d, std::size_t z) const = 0;
/** reset allocator @p d to empty state **/