Skip to content

Commit

Permalink
Merge pull request #501 from KhronosGroup/mkinsner-allocator-may-fail
Browse files Browse the repository at this point in the history
Improve default allocator wording

(cherry picked from commit 81e9a2f)
  • Loading branch information
gmlueck committed Nov 7, 2024
1 parent a3931fa commit 7a57620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4119,8 +4119,8 @@ STL-based libraries (e.g, Intel's TBB provides an allocator).
==== Default allocators

A default allocator is always defined by the implementation.
For allocations greater than size zero, it is guaranteed to return
non-[code]#nullptr# and new memory positions every call.
For allocations greater than size zero, when successful it is guaranteed to
return non-[code]#nullptr# and new memory positions every call.
The default allocator for const buffers will remove the const-ness of the type
(therefore, the default allocator for a buffer of type [code]#const int# will be
an [code]#Allocator<int>)#.
Expand Down

0 comments on commit 7a57620

Please sign in to comment.