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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
test/std/containers/associative/map/map.access/max_size.pass.cpp | ||
---|---|---|
24 | How about a newline here? (after the template<>) And why not hoist this into "test_allocator.h"? |
Comment Actions
This patch reminds me; The way we test our containers is ridiculous. We should have a single template that tests the container requirements, and each container test should just use that template.
Anyway. accepting before commit.
test/std/containers/associative/map/map.access/max_size.pass.cpp | ||
---|---|---|
24 | I'll change the .clang-format to add newlines after templates, and move this to test_allocator.h |
How about a newline here? (after the template<>)
And why not hoist this into "test_allocator.h"?