[#absl-Cord-Subcord]
= xref:absl.adoc[absl]::xref:absl/Cord.adoc[Cord]::Subcord
:relfileprefix: ../../
:mrdocs:

Returns a new Cord representing the subrange &lsqb;pos, pos &plus; new&lowbar;size) of&rsqb; &ast;this&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/Cord.adoc[Cord]
Subcord(
    size&lowbar;t pos,
    size&lowbar;t new&lowbar;size) const;
----

== Description

If pos &gt;&equals; size(), the result is empty()&period; If (pos &plus; new&lowbar;size) &gt;&equals; size(), the result is the subrange &lsqb;pos, size())&period;&rsqb;

== Return Value

A Cord holding the requested subrange&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pos*
| The starting byte offset of the subrange&period;
| *new&lowbar;size*
| The number of bytes in the subrange&period;
|===


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