From fe2dec15aae12292a78fadfe8ed6cca8ffd1b701 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 19 Mar 2023 20:12:28 -0400 Subject: [PATCH] spelling: convenience Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- doc/mimalloc-doc.h | 4 ++-- docs/group__cpp.html | 2 +- docs/using.html | 2 +- readme.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/mimalloc-doc.h b/doc/mimalloc-doc.h index 38f7f7a8..2dc63328 100644 --- a/doc/mimalloc-doc.h +++ b/doc/mimalloc-doc.h @@ -888,7 +888,7 @@ void mi_free_aligned(void* p, size_t alignment); /// /// Note: use the `mimalloc-new-delete.h` header to override the \a new /// and \a delete operators globally. The wrappers here are mostly -/// for convience for library writers that need to interface with +/// for convenience for library writers that need to interface with /// mimalloc from C++. /// /// \{ @@ -1012,7 +1012,7 @@ to link with the static library. See `test\CMakeLists.txt` for an example. ### C++ For best performance in C++ programs, it is also recommended to override the -global `new` and `delete` operators. For convience, mimalloc provides +global `new` and `delete` operators. For convenience, mimalloc provides [`mimalloc-new-delete.h`](https://github.com/microsoft/mimalloc/blob/master/include/mimalloc-new-delete.h) which does this for you -- just include it in a single(!) source file in your project. In C++, mimalloc also provides the `mi_stl_allocator` struct which implements the `std::allocator` diff --git a/docs/group__cpp.html b/docs/group__cpp.html index 2ad5303a..5527f2f8 100644 --- a/docs/group__cpp.html +++ b/docs/group__cpp.html @@ -137,7 +137,7 @@ Functions
mi_
prefixed implementations of various allocation functions that 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 convience for library writers that need to interface with mimalloc from C++.
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++.
to link with the shared (dynamic) library, or:
to link with the static library. See test\CMakeLists.txt
for an example.
For best performance in C++ programs, it is also recommended to override the global new
and delete
operators. For convience, mimalloc provides mimalloc-new-delete.h
which does this for you – just include it in a single(!) source file in your project without linking to the mimalloc's library.
For best performance in C++ programs, it is also recommended to override the global new
and delete
operators. For convenience, mimalloc provides mimalloc-new-delete.h
which does this for you – just include it in a single(!) source file in your project without linking to the mimalloc's library.
In C++, mimalloc also provides the mi_stl_allocator
struct which implements the std::allocator
interface. For example: