| 438 | } |
| 439 | |
| 440 | pointer allocate(size_type n) |
| 441 | { |
| 442 | const size_type max_alloc = allocator_traits_type::max_size(this->alloc()); |
| 443 | const size_type max = max_alloc <= stored_size_type(-1) ? max_alloc : stored_size_type(-1); |
| 444 | if ( max < n ) |
| 445 | boost::container::throw_length_error("get_next_capacity, allocator's max size reached"); |
| 446 | |
| 447 | return allocator_traits_type::allocate(this->alloc(), n); |
| 448 | } |
| 449 | |
| 450 | BOOST_CONTAINER_FORCEINLINE void deallocate(const pointer &p, size_type n) |
| 451 | { |
no test coverage detected