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]