forked from boostorg/core
Minor documentation fixes
This commit is contained in:
@ -82,7 +82,7 @@ std::size_t n);`]
|
|||||||
[[variablelist
|
[[variablelist
|
||||||
[[Requires][`A` is an /Allocator/]]
|
[[Requires][`A` is an /Allocator/]]
|
||||||
[[Effects]
|
[[Effects]
|
||||||
[Destroys each ['i]th 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);`]
|
||||||
@ -95,26 +95,34 @@ std::size_t n);`]
|
|||||||
[[variablelist
|
[[variablelist
|
||||||
[[Requires][`A` is an /Allocator/]]
|
[[Requires][`A` is an /Allocator/]]
|
||||||
[[Effects]
|
[[Effects]
|
||||||
[Constructs each ['i]th 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 already constructed ['j]th element in
|
[If an exception is thrown destroys each already constructed `j`-th element in
|
||||||
reverse order by calling `std::allocator_traits<A>::destroy(a, &p[j])`.]]]]]
|
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 ['i]th 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 already constructed ['j]th element in
|
[If an exception is thrown destroys each already constructed `j`-th element in
|
||||||
reverse order by calling `std::allocator_traits<A>::destroy(a, &p[j])`.]]]]]]
|
reverse order by calling `std::allocator_traits<A>::destroy(a, &p[j])`.]]]]]]
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
|
[section Compatibility]
|
||||||
|
|
||||||
|
When `BOOST_NO_CXX11_ALLOCATOR` is defined, and the C++11 allocator model is
|
||||||
|
not supported, these functions invoke constructors and destructors directly
|
||||||
|
without going through the supplied allocator.
|
||||||
|
|
||||||
|
[endsect]
|
||||||
|
|
||||||
[section Acknowledgments]
|
[section Acknowledgments]
|
||||||
|
|
||||||
Glen Fernandes originally implemented this functionality in Boost.Smart_Ptr and
|
Glen Fernandes originally implemented this functionality in Boost.Smart_Ptr and
|
||||||
|
@ -169,12 +169,4 @@ const noinit_adaptor<U>& rhs) noexcept;`]
|
|||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
[section Compatibility]
|
|
||||||
|
|
||||||
When `BOOST_NO_CXX11_ALLOCATOR` is defined, and the C++11 allocator model is
|
|
||||||
not supported, these functions invoke constructors and destructors directly
|
|
||||||
without going through the supplied allocator.
|
|
||||||
|
|
||||||
[endsect]
|
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
Reference in New Issue
Block a user