![]() | InDesign SDK 20.5 |
#include <BypassAllocator.h>
Classes | |
| struct | rebind |
Public Member Functions | |
| pointer | address (reference value) const |
| const_pointer | address (const_reference value) const |
| BypassPurgingAllocator (const BypassPurgingAllocator &src) noexcept | |
| template<class U > | |
| BypassPurgingAllocator (const BypassPurgingAllocator< U > &src) noexcept | |
| size_type | max_size () const noexcept |
| pointer | allocate (size_type num, const void *=0) |
| void | construct (pointer p, const T &value) |
| void | destroy (pointer p) |
| void | deallocate (pointer p, size_type num) |
Alocator that bypasses the purging mechanism in our default allocator. Used in special places that cause problems if a purge happens in the middle of a allocation. Still uses the allocation tracker for memory leak detection. IMPORTANT: if the system allocator fails to allocate the requested block this allocator doesn't attempt to purge so it will throw std::bad_alloc.