9#ifndef __MEM_ALLOCATOR_H__
10#define __MEM_ALLOCATOR_H__
24 template<
typename _Tp1>
struct rebind {
51 __ret =
static_cast<_Tp *
>(
MEM_mallocN(__n *
sizeof(_Tp),
"STL MEM_Allocator"));
64 return size_t(-1) /
sizeof(_Tp);
Read Guarded memory(de)allocation.
void * MEM_mallocN(size_t len, const char *str)
void MEM_freeN(void *vmemh)
MEM_Allocator< _Tp1 > other
const _Tp * const_pointer
ptrdiff_t difference_type
void destroy(pointer __p)
size_type max_size() const noexcept
void construct(pointer __p, const _Tp &__val)
~MEM_Allocator() noexcept=default
pointer address(reference __x) const
_Tp * allocate(size_type __n, const void *=nullptr)
MEM_Allocator() noexcept=default
const_pointer address(const_reference __x) const
const _Tp & const_reference
void deallocate(pointer __p, size_type)