<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"><tdclass="memItemLeft"align="right"valign="top">struct  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="group__cpp.html#structmi__stl__allocator">mi_stl_allocator< T ></a></td></tr>
<trclass="memdesc:structmi__stl__allocator"><tdclass="mdescLeft"> </td><tdclass="mdescRight"><em>std::allocator</em> implementation for mimalloc for use in STL containers. <ahref="group__cpp.html#structmi__stl__allocator">More...</a><br/></td></tr>
<trclass="memdesc:gaad048a9fce3d02c5909cd05c6ec24545"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <aclass="el"href="group__malloc.html#ga3406e8b168bc74c8637b11571a6da83a"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. <ahref="group__cpp.html#gaad048a9fce3d02c5909cd05c6ec24545">More...</a><br/></td></tr>
<trclass="memdesc:gae7bc4f56cd57ed3359060ff4f38bda81"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <aclass="el"href="group__malloc.html#ga0b05e2bf0f73e7401ae08597ff782ac6"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. <ahref="group__cpp.html#gae7bc4f56cd57ed3359060ff4f38bda81">More...</a><br/></td></tr>
<trclass="memdesc:gaef2c2bdb4f70857902d3c8903ac095f3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <aclass="el"href="group__aligned.html#ga68930196751fa2cca9e1fd0d71bade56"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. <ahref="group__cpp.html#gaef2c2bdb4f70857902d3c8903ac095f3">More...</a><br/></td></tr>
<trclass="memdesc:gaeaded64eda71ed6b1d569d3e723abc4a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <code>mi_malloc</code>, but when out of memory, use <code>std::get_new_handler</code> but return <em>NULL</em> on failure. <ahref="group__cpp.html#gaeaded64eda71ed6b1d569d3e723abc4a">More...</a><br/></td></tr>
<trclass="memdesc:gab5e29558926d934c3f1cae8c815f942c"><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 <em>NULL</em> on failure. <ahref="group__cpp.html#gab5e29558926d934c3f1cae8c815f942c">More...</a><br/></td></tr>
<trclass="memdesc:gaab78a32f55149e9fbf432d5288e38e1e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <aclass="el"href="group__malloc.html#gaf11eb497da57bdfb2de65eb191c69db6"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. <ahref="group__cpp.html#gaab78a32f55149e9fbf432d5288e38e1e">More...</a><br/></td></tr>
<trclass="memdesc:ga756f4b2bc6a7ecd0a90baea8e90c7907"><tdclass="mdescLeft"> </td><tdclass="mdescRight">like <aclass="el"href="group__malloc.html#ga61d57b4144ba24fba5c1e9b956d13853"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. <ahref="group__cpp.html#ga756f4b2bc6a7ecd0a90baea8e90c7907">More...</a><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 <em>new</em> and <em>delete</em> operators globally. The wrappers here are mostly for convience for library writers that need to interface with mimalloc from C++. </p>
<p>like <aclass="el"href="group__malloc.html#ga3406e8b168bc74c8637b11571a6da83a"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#ga68930196751fa2cca9e1fd0d71bade56"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 <aclass="el"href="group__malloc.html#ga0b05e2bf0f73e7401ae08597ff782ac6"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#gaf11eb497da57bdfb2de65eb191c69db6"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#ga61d57b4144ba24fba5c1e9b956d13853"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>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<divid="nav-path"class="navpath"><!-- id is needed for treeview function! -->
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.9.1 </li>