Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Address @mclows offline comments
- I added the polymorphic_allocator<T>::max_size() function.
- polymorphic_allocator<T>::allocate(size) now throws bad_alloc when size > size_type(~0) / sizeof(T).
- polymorphic_allocator<T>::deallocate(ptr, size) checks size is valid using _LIBCPP_ASSERT.
- resource_adaptor<A>::do_allocate(bytes) now throws bad_alloc when bytes > size_type(~0) - alignof(max_align_t).
- resource_adaptor<A>::do_deallocate(ptr, bytes) checks that bytes is valid using _LIBCPP_ASSERT.
Comment Actions
Address @mclow.lists comments.
- 'allocate' now throws length_error instead of 'bad_alloc'.