mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 04:47:24 +02:00
Minor documentation update for alloc_construct
This commit is contained in:
@ -75,41 +75,41 @@ void alloc_construct_n(A& a, T* p, std::size_t n, const T* l, std::size_t m);
|
|||||||
[variablelist
|
[variablelist
|
||||||
[[`template<class A, class T> void alloc_destroy(A& a, T* p);`]
|
[[`template<class A, class T> void alloc_destroy(A& a, T* p);`]
|
||||||
[[variablelist
|
[[variablelist
|
||||||
[[Requires][`A` is an _Allocator_]]
|
[[Requires][`A` is an /Allocator/]]
|
||||||
[[Effects][`std::allocator_traits<A>::destroy(a, p)`.]]]]]
|
[[Effects][`std::allocator_traits<A>::destroy(a, p)`.]]]]]
|
||||||
[[`template<class A, class T> void alloc_destroy_n(A& a, T* p,
|
[[`template<class A, class T> void alloc_destroy_n(A& a, T* p,
|
||||||
std::size_t n);`]
|
std::size_t n);`]
|
||||||
[[variablelist
|
[[variablelist
|
||||||
[[Requires][`A` is an _Allocator_]]
|
[[Requires][`A` is an /Allocator/]]
|
||||||
[[Effects]
|
[[Effects]
|
||||||
[Destroys each element in reverse order by calling
|
[Destroys each /i/th element in reverse order by calling
|
||||||
`std::allocator_traits<A>::destroy(a, &p[i])`.]]]]]
|
`std::allocator_traits<A>::destroy(a, &p[i])`.]]]]]
|
||||||
[[`template<class A, class T, class U> void alloc_construct(A& a, T* p,
|
[[`template<class A, class T, class U> void alloc_construct(A& a, T* p,
|
||||||
U&&... u);`]
|
U&&... u);`]
|
||||||
[[variablelist
|
[[variablelist
|
||||||
[[Requires][`A` is an _Allocator_]]
|
[[Requires][`A` is an /Allocator/]]
|
||||||
[[Effects]
|
[[Effects]
|
||||||
[`std::allocator_traits<A>::construct(a, p, std::forward<U>(u)...)`.]]]]]
|
[`std::allocator_traits<A>::construct(a, p, std::forward<U>(u)...)`.]]]]]
|
||||||
[[`template<class A, class T> void alloc_construct_n(A& a, T* p,
|
[[`template<class A, class T> void alloc_construct_n(A& a, T* p,
|
||||||
std::size_t n);`]
|
std::size_t n);`]
|
||||||
[[variablelist
|
[[variablelist
|
||||||
[[Requires][`A` is an _Allocator_]]
|
[[Requires][`A` is an /Allocator/]]
|
||||||
[[Effects]
|
[[Effects]
|
||||||
[Constructs each element in order by calling
|
[Constructs each /i/th element in order by calling
|
||||||
`std::allocator_traits<A>::construct(a, &p[i])`.]]
|
`std::allocator_traits<A>::construct(a, &p[i])`.]]
|
||||||
[[Remarks]
|
[[Remarks]
|
||||||
[If an exception is thrown, destroys each element in reverse order by
|
[If an exception is thrown, destroys each already constructed /j/th element in
|
||||||
calling `std::allocator_traits<A>::destroy(a, &p[i])`.]]]]]
|
reverse order by calling `std::allocator_traits<A>::destroy(a, &p[j])`.]]]]]
|
||||||
[[`template<class A, class T> void alloc_construct_n(A& a, T* p, std::size_t n,
|
[[`template<class A, class T> void alloc_construct_n(A& a, T* p, std::size_t n,
|
||||||
const T* l, std::size_t m);`]
|
const T* l, std::size_t m);`]
|
||||||
[[variablelist
|
[[variablelist
|
||||||
[[Requires][`A` is an _Allocator_]]
|
[[Requires][`A` is an /Allocator/]]
|
||||||
[[Effects]
|
[[Effects]
|
||||||
[Constructs each element in order by calling
|
[Constructs each /i/th element in order by calling
|
||||||
`std::allocator_traits<A>::construct(a, &p[i], l[i % m])`.]]
|
`std::allocator_traits<A>::construct(a, &p[i], l[i % m])`.]]
|
||||||
[[Remarks]
|
[[Remarks]
|
||||||
[If an exception is thrown, destroys each element in reverse order by
|
[If an exception is thrown, destroys each already constructed /j/th element in
|
||||||
calling `std::allocator_traits<A>::destroy(a, &p[i])`.]]]]]]
|
reverse order by calling `std::allocator_traits<A>::destroy(a, &p[j])`.]]]]]]
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user