diff -r 7edce1b5a798 -r f83583a0bbac test/util_allocator.h --- a/test/util_allocator.h Wed Aug 03 15:44:46 2022 +0200 +++ b/test/util_allocator.h Wed Aug 03 17:27:55 2022 +0200 @@ -64,11 +64,18 @@ CxTestingAllocator(); /** + * Verifies that this allocator has been used. + * + * @return true if any allocation was attempted using this allocator + */ + [[nodiscard]] bool used() const; + + /** * Verifies that all allocated memory blocks are freed and no free occurred twice. * * @return true iff all tracked allocations / deallocations were valid */ - bool verify() const; + [[nodiscard]] bool verify() const; }; #endif /* UCX_UTIL_ALLOCATOR_H */