refactor: explicit copy/move operations in OpaqueElementAllocator

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
Chodor, Jaroslaw 2025-04-16 08:08:42 +00:00 committed by Compute-Runtime-Automation
parent 38a3667304
commit 7744251995
1 changed files with 5 additions and 0 deletions

View File

@ -203,6 +203,11 @@ class OpaqueElementAllocator final {
}
}
OpaqueElementAllocator(OpaqueElementAllocator &&) = default;
OpaqueElementAllocator &operator=(OpaqueElementAllocator &&) = default;
OpaqueElementAllocator(const OpaqueElementAllocator &) = delete;
OpaqueElementAllocator &operator=(const OpaqueElementAllocator &) = delete;
AllocationT allocate() {
for (auto &chunk : chunks) {
auto *va = chunk.allocate();