Return true if there is sufficient memory space in the buffer to allocate a contiguous memory block of the specified size (in bytes) after taking the alignment strategy into consideration, and false otherwise. The behavior is undefined unless 0 < size, and this object is currently managing a buffer.

Synopsis

Declared in <bdlma_buffermanager.h>

bool
hasSufficientCapacity(bsls::Types::size_type size) const;

Created with MrDocs