summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/test_compare.h
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-11-23 01:18:56 +0000
committerEric Fiselier <eric@efcs.ca>2016-11-23 01:18:56 +0000
commit55b31b4e6934fb2e9dda6d7f0f2792b6c3420c05 (patch)
treec5f77e59cac52f369638c0016587bf7b53a601c0 /libcxx/test/std/containers/test_compare.h
parent80e66ac1d3cdb67a35ca0c57f8e4a00cacd0f019 (diff)
downloadbcm5719-llvm-55b31b4e6934fb2e9dda6d7f0f2792b6c3420c05.tar.gz
bcm5719-llvm-55b31b4e6934fb2e9dda6d7f0f2792b6c3420c05.zip
[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 llvm-svn: 287729
Diffstat (limited to 'libcxx/test/std/containers/test_compare.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud