Small comment

This commit is contained in:
Matthew Parkinson
2021-11-24 14:34:07 +00:00
committed by Matthew Parkinson
parent d725beca90
commit a8ef963ed7

View File

@@ -338,6 +338,11 @@ namespace snmalloc
public:
constexpr LocalAllocator() = default;
/**
* Remove copy constructors and assignment operators.
* Once initialised the CoreAlloc will take references to the internals
* of this allocators, and thus copying/moving it is very unsound.
*/
LocalAllocator(const LocalAllocator&) = delete;
LocalAllocator& operator=(const LocalAllocator&) = delete;