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

Function allocate

extern/boost/boost/container/vector.hpp:440–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

allocateMethod · 0.50

Calls 2

throw_length_errorFunction · 0.85
allocMethod · 0.45

Tested by

no test coverage detected