From 3a2d4d151f19d440aaac12dfcee76f9e5a9747ed Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 7 May 2025 20:49:02 +0200 Subject: [PATCH] Cleanup: move linear allocator description to class --- source/blender/blenlib/BLI_linear_allocator.hh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/blender/blenlib/BLI_linear_allocator.hh b/source/blender/blenlib/BLI_linear_allocator.hh index df9c3120abb..e4ca435f977 100644 --- a/source/blender/blenlib/BLI_linear_allocator.hh +++ b/source/blender/blenlib/BLI_linear_allocator.hh @@ -4,10 +4,6 @@ /** \file * \ingroup bli - * - * A linear allocator is the simplest form of an allocator. It never reuses any memory, and - * therefore does not need a deallocation method. It simply hands out consecutive buffers of - * memory. When the current buffer is full, it allocates a new larger buffer and continues. */ #pragma once @@ -25,6 +21,11 @@ namespace blender { */ // #define BLI_DEBUG_LINEAR_ALLOCATOR_SIZE +/** + * A linear allocator is the simplest form of an allocator. It never reuses any memory, and + * therefore does not need a deallocation method. It simply hands out consecutive buffers of + * memory. When the current buffer is full, it allocates a new larger buffer and continues. + */ template class LinearAllocator : NonCopyable, NonMovable { private: BLI_NO_UNIQUE_ADDRESS Allocator allocator_;