GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing microsoft.github.io — mi-malloc: C++ wrappers
Loading...
Searching...
No Matches
C++ wrappers mi_ prefixed implementations of various C++ allocation functions. More...
Detailed Descriptionmi_ prefixed implementations of various C++ allocation functions. These use C++ semantics on out-of-memory, generally calling std::get_new_handler and raising a std::bad_alloc exception on failure. Note: use the mimalloc-new-delete.h header to override the new and delete operators globally. The wrappers here are mostly for convenience for library writers that need to interface with mimalloc from C++. Data Structure Documentation◆ mi_stl_allocator
template<class T> struct mi_stl_allocator< T > std::allocator implementation for mimalloc for use in STL containers. For example: std::vector<int, mi_stl_allocator<int> > vec;
vec.push_back(1);
vec.pop_back();
Function Documentation◆ mi_heap_alloc_new()
As mi_new(), allocating from the specified heap. ◆ mi_heap_alloc_new_n()
As mi_new_n(), allocating count elements of size bytes from the specified heap. ◆ mi_new()
like mi_malloc(), but when out of memory, use std::get_new_handler and raise std::bad_alloc exception on failure. ◆ mi_new_aligned()
like mi_malloc_aligned(), but when out of memory, use std::get_new_handler and raise std::bad_alloc exception on failure. ◆ mi_new_aligned_nothrow()
like mi_malloc_aligned, but when out of memory, use std::get_new_handler but return NULL on failure. ◆ mi_new_n()
like mi_mallocn(), but when out of memory, use std::get_new_handler and raise std::bad_alloc exception on failure. ◆ mi_new_nothrow()
like mi_malloc, but when out of memory, use std::get_new_handler but return NULL on failure. ◆ mi_new_realloc()
like mi_realloc(), but when out of memory, use std::get_new_handler and raise std::bad_alloc exception on failure. ◆ mi_new_reallocn()
like mi_reallocn(), but when out of memory, use std::get_new_handler and raise std::bad_alloc exception on failure. ◆ mi_theap_alloc_new()
As mi_new(), using a theap belonging to the calling thread. ◆ mi_theap_alloc_new_n()
As mi_new_n(), using a theap belonging to the calling thread. ◆ mi_theap_alloc_new_nothrow()
As mi_new_nothrow(), using a theap belonging to the calling thread.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||