From 0a42ddabef35c1099c9e63024e3c4c60c06cc5be Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Thu, 11 Apr 2024 02:25:05 -0400 Subject: [PATCH] Update pointer_in_range documentation --- doc/pointer_in_range.qbk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/pointer_in_range.qbk b/doc/pointer_in_range.qbk index 8a21df9..7da7b6d 100644 --- a/doc/pointer_in_range.qbk +++ b/doc/pointer_in_range.qbk @@ -33,7 +33,7 @@ template void Allocator::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); } } @@ -58,6 +58,7 @@ constexpr bool pointer_in_range(const T* ptr, const T* begin, const T* end); [[`template constexpr bool pointer_in_range(const T* ptr, const T* begin, T* end);`] [[variablelist +[[Requires][`[begin,end)` is a valid range.]] [[Returns][`true` if `ptr` is in range `[begin,end)`, otherwise `false`.]]]]]] [endsect]