File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1115,6 +1115,10 @@ the namespace `boost::container::pmr`. There are two groups,
11151115and offers some alternative utilities if the required C++11 features of the
11161116['Library Fundamentals] specification are not available.
11171117
1118+ Finally, [*Boost.Container]'s polymorphic resource library includes support for
1119+ dynamic memory allocation for over-aligned types (introduced in C++17), in older
1120+ platforms.
1121+
11181122[import ../example/doc_pmr.cpp]
11191123
11201124Let's review the usage example given in
@@ -1451,9 +1455,9 @@ use [*Boost.Container]? There are several reasons for that:
14511455* Implemented C++20's [funcref boost::container::uninitialized_construct_using_allocator uninitialized_construct_using_allocator]
14521456 and [funcref boost::container::make_obj_using_allocator make_obj_using_allocator].
14531457* Added `[[nodiscard]]` to several allocator and PMR utilities.
1454- * Implemented overaligned operator new/delete support for `new_allocator` and `pmr::new_delete_resource()`:
1455- * Uses C++17's `cpp_aligned_new` if available .
1456- * Uses alternative aligned allocation functions for Win32/Unix otherwise.
1458+ * Implemented overaligned allocation support for `new_allocator` and `pmr::new_delete_resource()`:
1459+ * If available, uses C++17's utilities under the `__cpp_aligned_new` feature .
1460+ * Uses alternative aligned allocation functions (`posix_memalign`, `aligned_alloc`, `_aligned_malloc`...) otherwise.
14571461* Fixed bugs/issues:
14581462 * [@https://github.com/boostorg/container/issues/323 GitHub #323: ['"flat_tree::try_emplace UB"]].
14591463
You can’t perform that action at this time.
0 commit comments