Skip to content

Commit 8f1854a

Browse files
RMGirouxGitHub Enterprise
authored andcommitted
Regenerate bslma_bslallocator_cpp03.h (#5937)
1 parent a9b5395 commit 8f1854a

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

groups/bsl/bslma/bslma_bslallocator_cpp03.h

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// regions of C++11 code, then this header contains no code and is not
2222
// '#include'd in the original header.
2323
//
24-
// Generated on Wed Jul 15 14:05:55 2026
24+
// Generated on Thu Jul 16 09:27:47 2026
2525
// Command line: sim_cpp11_features.py bslma_bslallocator.h
2626

2727
#ifdef COMPILING_BSLMA_BSLALLOCATOR_H
@@ -3161,15 +3161,9 @@ BSLS_KEYWORD_CONSTEXPR inline
31613161
typename allocator<TYPE>::size_type allocator<TYPE>::max_size() const
31623162
{
31633163
// Return the largest value, `v`, such that `v * sizeof(T)` fits in a
3164-
// `size_type`.
3165-
3166-
// The result is as-if computed by:
3167-
// ...
3168-
// const size_type MAX_NUM_BYTES = ~size_type(0);
3169-
// const size_type MAX_NUM_ELEMENTS = MAX_NUM_BYTES / sizeof(TYPE);
3170-
//
3171-
// return MAX_NUM_ELEMENTS;
3172-
// ...
3164+
// `size_type`. Note that `~size_type(0)` is the maximum value for
3165+
// `size_type`, the largest possible sequence of bytes to store `TYPE`
3166+
// objects in.
31733167

31743168
return ~size_type(0) / sizeof(TYPE);
31753169
}

0 commit comments

Comments
 (0)