MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / priv_allocation_command

Function priv_allocation_command

extern/boost/boost/container/vector.hpp:538–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 3

throw_length_errorFunction · 0.85
allocateMethod · 0.45
allocMethod · 0.45

Tested by

no test coverage detected