diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-04-12 22:09:45 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-04-12 22:09:45 -0700 |
commit | 054b0b447eff82327c37a617849c3e20fbbb9789 (patch) | |
tree | 3055ee4603f8a05ca8dd04f8056573aac3cf4123 /docs | |
parent | 6c11a0c693da9ccf38225471d614bde162312427 (diff) | |
parent | 9539c488c29e7c2c06afa63abce70785cb5d15c5 (diff) |
Merge branch 'master' into compact
Diffstat (limited to 'docs')
-rw-r--r-- | docs/manual.adoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/manual.adoc b/docs/manual.adoc index bab2f80..9d75ea1 100644 --- a/docs/manual.adoc +++ b/docs/manual.adoc @@ -497,7 +497,7 @@ allocation_function get_memory_allocation_function(); deallocation_function get_memory_deallocation_function(); ---- -Allocation function is called with the size (in bytes) as an argument and should return a pointer to a memory block with alignment that is suitable for storage of primitive types (usually a maximum of `void*` and `double` types alignment is sufficient) and size that is greater than or equal to the requested one. If the allocation fails, the function has to return null pointer (throwing an exception from allocation function results in undefined behavior). +Allocation function is called with the size (in bytes) as an argument and should return a pointer to a memory block with alignment that is suitable for storage of primitive types (usually a maximum of `void*` and `double` types alignment is sufficient) and size that is greater than or equal to the requested one. If the allocation fails, the function has to either return null pointer or to throw an exception. Deallocation function is called with the pointer that was returned by some call to allocation function; it is never called with a null pointer. If memory management functions are not thread-safe, library thread safety is not guaranteed. |