| 536 | } |
| 537 | |
| 538 | pointer priv_allocation_command(version_1, boost::container::allocation_type command, |
| 539 | size_type limit_size, |
| 540 | size_type &prefer_in_recvd_out_size, |
| 541 | pointer &reuse) |
| 542 | { |
| 543 | (void)command; |
| 544 | BOOST_ASSERT( (command & allocate_new)); |
| 545 | BOOST_ASSERT(!(command & nothrow_allocation)); |
| 546 | //First detect overflow on smaller stored_size_types |
| 547 | if (limit_size > stored_size_type(-1)){ |
| 548 | boost::container::throw_length_error("get_next_capacity, allocator's max size reached"); |
| 549 | } |
| 550 | (clamp_by_stored_size_type<size_type>)(prefer_in_recvd_out_size, stored_size_type()); |
| 551 | pointer const p = this->allocate(prefer_in_recvd_out_size); |
| 552 | reuse = pointer(); |
| 553 | return p; |
| 554 | } |
| 555 | |
| 556 | pointer priv_allocation_command(version_2, boost::container::allocation_type command, |
| 557 | size_type limit_size, |
nothing calls this directly
no test coverage detected