<p><code>mi_</code> prefixed implementations of various allocation functions that use C++ semantics on out-of-memory, generally calling <code>std::get_new_handler</code> and raising a <code>std::bad_alloc</code> exception on failure.
<trclass="memitem:structmi__stl__allocator"id="r_structmi__stl__allocator"><tdclass="memItemLeft"align="right"valign="top">struct  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="#structmi__stl__allocator">mi_stl_allocator< T ></a></td></tr>
<trclass="memdesc:structmi__stl__allocator"><tdclass="mdescLeft"> </td><tdclass="mdescRight"><emclass="arg">std::allocator</em> implementation for mimalloc for use in STL containers. <ahref="#structmi__stl__allocator">More...</a><br/></td></tr>
<trclass="memdesc:ga633d96e3bc7011f960df9f3b2731fc6a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <aclass="el"href="group__malloc.html#gae1dd97b542420c87ae085e822b1229e8"title="Allocate size bytes.">mi_malloc()</a>, but when out of memory, use <code>std::get_new_handler</code> and raise <code>std::bad_alloc</code> exception on failure. <br/></td></tr>
<trclass="memdesc:gadd11b85c15d21d308386844b5233856c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <aclass="el"href="group__malloc.html#ga61f46bade3db76ca24aaafedc40de7b6"title="Allocate count elements of size bytes.">mi_mallocn()</a>, but when out of memory, use <code>std::get_new_handler</code> and raise <code>std::bad_alloc</code> exception on failure. <br/></td></tr>
<trclass="memitem:ga79c54da0b4b4ce9fcc11d2f6ef6675f8"id="r_ga79c54da0b4b4ce9fcc11d2f6ef6675f8"><tdclass="memItemLeft"align="right"valign="top">void * </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="#ga79c54da0b4b4ce9fcc11d2f6ef6675f8">mi_new_aligned</a> (std::size_t n, std::align_val_t alignment) noexcept(false)</td></tr>
<trclass="memdesc:ga79c54da0b4b4ce9fcc11d2f6ef6675f8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <aclass="el"href="group__aligned.html#ga69578ff1a98ca16e1dcd02c0995cd65c"title="Allocate size bytes aligned by alignment.">mi_malloc_aligned()</a>, but when out of memory, use <code>std::get_new_handler</code> and raise <code>std::bad_alloc</code> exception on failure. <br/></td></tr>
<trclass="memdesc:ga5cb4f120d1f7296074256215aa9a9e54"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <code>mi_malloc</code>, but when out of memory, use <code>std::get_new_handler</code> but return <emclass="arg">NULL</em> on failure. <br/></td></tr>
<trclass="memdesc:ga92ae00b6dd64406c7e64557711ec04b7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <code>mi_malloc_aligned</code>, but when out of memory, use <code>std::get_new_handler</code> but return <emclass="arg">NULL</em> on failure. <br/></td></tr>
<trclass="memdesc:ga6867d89baf992728e0cc20a1f47db4d0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <aclass="el"href="group__malloc.html#ga0621af6a5e3aa384e6a1b548958bf583"title="Re-allocate memory to newsize bytes.">mi_realloc()</a>, but when out of memory, use <code>std::get_new_handler</code> and raise <code>std::bad_alloc</code> exception on failure. <br/></td></tr>
<trclass="memdesc:gaace912ce086682d56f3ce9f7638d9d67"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <aclass="el"href="group__malloc.html#ga8bddfb4a1270a0854bbcf44cb3980467"title="Re-allocate memory to count elements of size bytes.">mi_reallocn()</a>, but when out of memory, use <code>std::get_new_handler</code> and raise <code>std::bad_alloc</code> exception on failure. <br/></td></tr>
<p><code>mi_</code> prefixed implementations of various allocation functions that use C++ semantics on out-of-memory, generally calling <code>std::get_new_handler</code> and raising a <code>std::bad_alloc</code> exception on failure. </p>
<p>Note: use the <code>mimalloc-new-delete.h</code> header to override the <emclass="arg">new</em> and <emclass="arg">delete</em> operators globally. The wrappers here are mostly for convenience for library writers that need to interface with mimalloc from C++. </p>
<p>like <aclass="el"href="group__malloc.html#gae1dd97b542420c87ae085e822b1229e8"title="Allocate size bytes.">mi_malloc()</a>, but when out of memory, use <code>std::get_new_handler</code> and raise <code>std::bad_alloc</code> exception on failure. </p>
<p>like <aclass="el"href="group__aligned.html#ga69578ff1a98ca16e1dcd02c0995cd65c"title="Allocate size bytes aligned by alignment.">mi_malloc_aligned()</a>, but when out of memory, use <code>std::get_new_handler</code> and raise <code>std::bad_alloc</code> exception on failure. </p>
<p>like <code>mi_malloc_aligned</code>, but when out of memory, use <code>std::get_new_handler</code> but return <emclass="arg">NULL</em> on failure. </p>
<p>like <aclass="el"href="group__malloc.html#ga61f46bade3db76ca24aaafedc40de7b6"title="Allocate count elements of size bytes.">mi_mallocn()</a>, but when out of memory, use <code>std::get_new_handler</code> and raise <code>std::bad_alloc</code> exception on failure. </p>
<p>like <aclass="el"href="group__malloc.html#ga0621af6a5e3aa384e6a1b548958bf583"title="Re-allocate memory to newsize bytes.">mi_realloc()</a>, but when out of memory, use <code>std::get_new_handler</code> and raise <code>std::bad_alloc</code> exception on failure. </p>
<p>like <aclass="el"href="group__malloc.html#ga8bddfb4a1270a0854bbcf44cb3980467"title="Re-allocate memory to count elements of size bytes.">mi_reallocn()</a>, but when out of memory, use <code>std::get_new_handler</code> and raise <code>std::bad_alloc</code> exception on failure. </p>
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.13.1 </li>