Skip to content

Commit e65c6e0

Browse files
mattiperic-wieser
andauthored
Update doc/neps/nep-0049.rst
Co-authored-by: Eric Wieser <[email protected]>
1 parent 6cbda78 commit e65c6e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/neps/nep-0049.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ NumPy C-API functions
137137
The use of a ``size`` parameter in ``free`` differentiates this struct from
138138
the :c:type:`PyMemAllocatorEx` struct in Python. This call signature is
139139
used internally in NumPy currently, and also in other places for instance
140-
C++11 (maybe older): https://en.cppreference.com/w/cpp/memory/allocator/deallocate
141-
C++17: https://en.cppreference.com/w/cpp/memory/polymorphic_allocator/deallocate
142-
Rust (allocator_api): https://doc.rust-lang.org/std/alloc/trait.Allocator.html#tymethod.deallocate
140+
`C++98 <https://en.cppreference.com/w/cpp/memory/allocator/deallocate>`,
141+
`C++11 <https://en.cppreference.com/w/cpp/memory/allocator_traits/deallocate>`, and
142+
`Rust (allocator_api) <https://doc.rust-lang.org/std/alloc/trait.Allocator.html#tymethod.deallocate>`.
143143

144144
The consumer of the `PyDataMemAllocator` interface must keep track of ``size`` and make sure it is
145145
consistent with the parameter passed to the ``(m|c|re)alloc`` functions.

0 commit comments

Comments
 (0)