[#BloombergLP-bdlma-BufferManager-hasSufficientCapacity]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/BufferManager.adoc[BufferManager]::hasSufficientCapacity
:relfileprefix: ../../../
:mrdocs:

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&period; The behavior is undefined unless `0 &lt; size`, and this object is currently managing a buffer&period;

== Synopsis

Declared in `&lt;bdlma&lowbar;buffermanager&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
hasSufficientCapacity(xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size&lowbar;type] size) const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
