[#absl-CordBuffer-CreateWithDefaultLimit]
= xref:absl.adoc[absl]::xref:absl/CordBuffer.adoc[CordBuffer]::CreateWithDefaultLimit
:relfileprefix: ../../
:mrdocs:

Creates a CordBuffer instance of the desired `capacity`, capped at the default limit `kDefaultLimit`&period; The returned buffer has a guaranteed capacity of at least `min(kDefaultLimit, capacity)`&period; See the class comments for more information on buffer capacities and intended usage&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;cord&lowbar;buffer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:absl/CordBuffer.adoc[CordBuffer]
CreateWithDefaultLimit(size&lowbar;t capacity);
----

== Return Value

A new CordBuffer with the requested capacity&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *capacity*
| The desired capacity, capped at `kDefaultLimit`&period;
|===


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