mirror of
https://github.com/boostorg/core.git
synced 2025-07-31 13:27:29 +02:00
Update pointer_in_range documentation
This commit is contained in:
@ -33,7 +33,7 @@ template<class T, class N>
|
|||||||
void
|
void
|
||||||
Allocator<T, N>::deallocate(pointer ptr, size_type)
|
Allocator<T, N>::deallocate(pointer ptr, size_type)
|
||||||
{
|
{
|
||||||
if (!boost::pointer_in_range(ptr, &buffer_[0], &buffer_[N])) {
|
if (!boost::pointer_in_range(ptr, buffer_, buffer_ + N)) {
|
||||||
::operator delete(ptr);
|
::operator delete(ptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -58,6 +58,7 @@ constexpr bool pointer_in_range(const T* ptr, const T* begin, const T* end);
|
|||||||
[[`template<class T> constexpr bool pointer_in_range(const T* ptr,
|
[[`template<class T> constexpr bool pointer_in_range(const T* ptr,
|
||||||
const T* begin, T* end);`]
|
const T* begin, T* end);`]
|
||||||
[[variablelist
|
[[variablelist
|
||||||
|
[[Requires][`[begin,end)` is a valid range.]]
|
||||||
[[Returns][`true` if `ptr` is in range `[begin,end)`, otherwise `false`.]]]]]]
|
[[Returns][`true` if `ptr` is in range `[begin,end)`, otherwise `false`.]]]]]]
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
Reference in New Issue
Block a user