[#BloombergLP-bdlb-IndexSpanStringUtil-bind-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/IndexSpanStringUtil.adoc[IndexSpanStringUtil]::bind
:relfileprefix: ../../../
:mrdocs:

`bind` overloads

== Synopses

Declared in `&lt;bdlb&lowbar;indexspanstringutil&period;h&gt;`

Return a string view of the substring of `string` described by `span`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::string&lowbar;view
xref:BloombergLP/bdlb/IndexSpanStringUtil/bind-01.adoc[bind](
    std::string&lowbar;view const& string,
    xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] const& span);
----

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/bind-01.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for a wide&hyphen;character `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::wstring&lowbar;view
xref:BloombergLP/bdlb/IndexSpanStringUtil/bind-07.adoc[bind](
    std::wstring&lowbar;view const& string,
    xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] const& span);
----

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/bind-07.adoc[_» more&period;&period;&period;_]#

== Return Value

a string view of the substring described by `span`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *string*
| string containing the substring
| *span*
| index span describing the substring
|===


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