Skip to content

Commit a1a5058

Browse files
committed
Update docs with new overaligned allocation changes.
1 parent c99257c commit a1a5058

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

doc/container.qbk

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,10 @@ the namespace `boost::container::pmr`. There are two groups,
11151115
and 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

11201124
Let'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

0 commit comments

Comments
 (0)