diff options
author | Daan <daanl@outlook.com> | 2022-04-08 14:31:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 14:31:46 -0700 |
commit | 588f327f6ad59b937a3ab4cec02855dea6ffbc55 (patch) | |
tree | 46a799630bf63d68e1842f5b3bfed633d0dd2120 /docs/using.html | |
parent | 324242e0e4976cf2115d4fa0af3d18b81f00da9b (diff) | |
parent | c027c27c0aad8d0389e1b0f1fbc01c789b3835ae (diff) |
Merge pull request #563 from devnexen/cpp_override_fix
c++ operators override multiple definitions fix.
Diffstat (limited to 'docs/using.html')
-rw-r--r-- | docs/using.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/using.html b/docs/using.html index e6aad1a..140f0c5 100644 --- a/docs/using.html +++ b/docs/using.html @@ -105,7 +105,7 @@ $(document).ready(function(){initNavTree('using.html',''); initResizable(); }); </div><!-- fragment --><p> to link with the shared (dynamic) library, or: </p><div class="fragment"><div class="line">target_link_libraries(myapp PUBLIC mimalloc-<span class="keyword">static</span>)</div> </div><!-- fragment --><p> to link with the static library. See <code>test\CMakeLists.txt</code> for an example.</p> <h3>C++</h3> -<p>For best performance in C++ programs, it is also recommended to override the global <code>new</code> and <code>delete</code> operators. For convience, mimalloc provides <a href="https://github.com/microsoft/mimalloc/blob/master/include/mimalloc-new-delete.h"><code>mimalloc-new-delete.h</code></a> which does this for you – just include it in a single(!) source file in your project.</p> +<p>For best performance in C++ programs, it is also recommended to override the global <code>new</code> and <code>delete</code> operators. For convience, mimalloc provides <a href="https://github.com/microsoft/mimalloc/blob/master/include/mimalloc-new-delete.h"><code>mimalloc-new-delete.h</code></a> which does this for you – just include it in a single(!) source file in your project without linking to the mimalloc's library.</p> <p>In C++, mimalloc also provides the <code><a class="el" href="group__cpp.html#structmi__stl__allocator" title="std::allocator implementation for mimalloc for use in STL containers.">mi_stl_allocator</a></code> struct which implements the <code>std::allocator</code> interface. For example: </p><div class="fragment"><div class="line">std::vector<some_struct, mi_stl_allocator<some_struct>> vec;</div> <div class="line">vec.push_back(some_struct());</div> </div><!-- fragment --><h3>Statistics</h3> |