diff options
author | 2022-09-02 11:27:49 -0700 | |
---|---|---|
committer | 2022-09-02 11:28:21 -0700 | |
commit | 2052c2e37c7554c52db3c117b3ad468924e10cd2 (patch) | |
tree | 58c1cac07a62b45e95081712164e40f8b23711cc /FAQ.md | |
parent | 152e9a182675cea81ba38ae6784c9980132b0bdc (diff) |
InlinedVector: Small improvement to the max_size() calculation
In some cases we can do a bit better by using
std::min(std::numeric_limits<size_type>::max() / 2, allocator<T>::max_size())
They may help in some cases, particularly on 32-bit platforms.
PiperOrigin-RevId: 471846886
Change-Id: I5bd63de5dd8aec3de6530a33d8904dd6e9bd015e
Diffstat (limited to 'FAQ.md')
0 files changed, 0 insertions, 0 deletions