commit | ef3060ef96f9a8450fc5635d542b5dc207c55717 | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Wed Nov 23 01:18:56 2016 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Wed Nov 23 01:18:56 2016 +0000 |
tree | e38468346d45953e07734f2b9c69a548cc4c0d63 | |
parent | 0373708cdc6b84bcfac38f4cf8539c6dd794d360 [diff] |
[libcxx] Fix max_size() across all containers Summary: The `max_size()` method of containers should respect both the allocator's reported `max_size` and the range of the `difference_type`. This patch makes all containers choose the smallest of those two values. Reviewers: mclow.lists, EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26885 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@287729 91177308-0d34-0410-b5e6-96231b3b80d8