MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / allocation_command

Method allocation_command

include/win/boost/container/allocator.hpp:224–236  ·  view source on GitHub ↗

An advanced function that offers in-place expansion shrink to fit and new allocation capabilities. Memory allocated with this function can only be deallocated with deallocate() or deallocate_many(). This function is available only with Version == 2

Source from the content-addressed store, hash-verified

222 //!or deallocate_many().
223 //!This function is available only with Version == 2
224 pointer allocation_command(allocation_type command,
225 size_type limit_size,
226 size_type &prefer_in_recvd_out_size,
227 pointer &reuse)
228 {
229 BOOST_STATIC_ASSERT(( Version > 1 ));
230 const allocation_type mask(AllocationDisableMask);
231 command &= ~mask;
232 pointer ret = this->priv_allocation_command(command, limit_size, prefer_in_recvd_out_size, reuse);
233 if(!ret && !(command & BOOST_CONTAINER_NOTHROW_ALLOCATION))
234 boost::container::throw_bad_alloc();
235 return ret;
236 }
237
238 //!Returns maximum the number of objects the previously allocated memory
239 //!pointed by p can hold.

Callers 8

vector_alloc_holderMethod · 0.45
vector.hppFile · 0.45
try_expand_fwdFunction · 0.45
priv_allocation_commandFunction · 0.45
assignMethod · 0.45
priv_mergeFunction · 0.45
priv_reserve_no_capacityFunction · 0.45

Calls 2

throw_bad_allocFunction · 0.85

Tested by

no test coverage detected