From 8f5f7f9c42c157bbff6cad49230fc6d43c0b12e2 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Fri, 3 May 2019 18:59:04 -0400 Subject: [PATCH] Minor documentation update for alloc_construct --- doc/alloc_construct.qbk | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/alloc_construct.qbk b/doc/alloc_construct.qbk index 85f296b..ba83a97 100644 --- a/doc/alloc_construct.qbk +++ b/doc/alloc_construct.qbk @@ -75,41 +75,41 @@ void alloc_construct_n(A& a, T* p, std::size_t n, const T* l, std::size_t m); [variablelist [[`template void alloc_destroy(A& a, T* p);`] [[variablelist -[[Requires][`A` is an _Allocator_]] +[[Requires][`A` is an /Allocator/]] [[Effects][`std::allocator_traits::destroy(a, p)`.]]]]] [[`template void alloc_destroy_n(A& a, T* p, std::size_t n);`] [[variablelist -[[Requires][`A` is an _Allocator_]] +[[Requires][`A` is an /Allocator/]] [[Effects] -[Destroys each element in reverse order by calling +[Destroys each /i/th element in reverse order by calling `std::allocator_traits::destroy(a, &p[i])`.]]]]] [[`template void alloc_construct(A& a, T* p, U&&... u);`] [[variablelist -[[Requires][`A` is an _Allocator_]] +[[Requires][`A` is an /Allocator/]] [[Effects] [`std::allocator_traits::construct(a, p, std::forward(u)...)`.]]]]] [[`template void alloc_construct_n(A& a, T* p, std::size_t n);`] [[variablelist -[[Requires][`A` is an _Allocator_]] +[[Requires][`A` is an /Allocator/]] [[Effects] -[Constructs each element in order by calling +[Constructs each /i/th element in order by calling `std::allocator_traits::construct(a, &p[i])`.]] [[Remarks] -[If an exception is thrown, destroys each element in reverse order by -calling `std::allocator_traits::destroy(a, &p[i])`.]]]]] +[If an exception is thrown, destroys each already constructed /j/th element in +reverse order by calling `std::allocator_traits::destroy(a, &p[j])`.]]]]] [[`template void alloc_construct_n(A& a, T* p, std::size_t n, const T* l, std::size_t m);`] [[variablelist -[[Requires][`A` is an _Allocator_]] +[[Requires][`A` is an /Allocator/]] [[Effects] -[Constructs each element in order by calling +[Constructs each /i/th element in order by calling `std::allocator_traits::construct(a, &p[i], l[i % m])`.]] [[Remarks] -[If an exception is thrown, destroys each element in reverse order by -calling `std::allocator_traits::destroy(a, &p[i])`.]]]]]] +[If an exception is thrown, destroys each already constructed /j/th element in +reverse order by calling `std::allocator_traits::destroy(a, &p[j])`.]]]]]] [endsect]