[#BloombergLP-balb-PipeControlChannel_CStringUtil-flatten-064]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/PipeControlChannel_CStringUtil.adoc[PipeControlChannel&lowbar;CStringUtil]::flatten
:relfileprefix: ../../../
:mrdocs:

`flatten` overloads

== Synopses

Declared in `&lt;balb&lowbar;pipecontrolchannel&period;h&gt;`

Return a temporary `bsl&colon;&colon;string` constructed from the specified `stringRef`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:bsl/string.adoc[bsl::string]
xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-00.adoc[flatten](xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& stringRef);
----

[.small]#xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-00.adoc[_» more&period;&period;&period;_]#

Return the result of invoking `c&lowbar;str()` on the specified `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
char const*
xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-04.adoc[flatten](xref:bsl/string.adoc[bsl::string] const& string);
----

[.small]#xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-04.adoc[_» more&period;&period;&period;_]#

Return the result of invoking `c&lowbar;str()` on the specified `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
char const*
xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-02.adoc[flatten](std::pmr::string const& string);
----

[.small]#xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-02.adoc[_» more&period;&period;&period;_]#

Return the result of invoking `c&lowbar;str()` on the specified `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
char const*
xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-08.adoc[flatten](std::string const& string);
----

[.small]#xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-08.adoc[_» more&period;&period;&period;_]#

Return the specified `cString`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
char const*
xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-07.adoc[flatten](char* cString);
----

[.small]#xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-07.adoc[_» more&period;&period;&period;_]#

Return the specified `cString`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
char const*
xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-09.adoc[flatten](char const* cString);
----

[.small]#xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-09.adoc[_» more&period;&period;&period;_]#

Produce a compile&hyphen;time error informing the caller that the parameterized `TYPE` is not supported as the parameter for the call&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
char const*
xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-060.adoc[flatten](TYPE const& value);
----

[.small]#xref:BloombergLP/balb/PipeControlChannel_CStringUtil/flatten-060.adoc[_» more&period;&period;&period;_]#

== Return Value

* temporary `bsl&colon;&colon;string` constructed from `stringRef`
* null&hyphen;terminated string from `string&period;c&lowbar;str()`
* the specified `cString`
* never returns&semi; this overload causes a compile&hyphen;time error

== Parameters

[cols="1,4"]
|===
| Name| Description
| *stringRef*
| string reference used to construct the temporary
| *string*
| string whose `c&lowbar;str()` result is returned
| *cString*
| null&hyphen;terminated C string to return
| *value*
| object of an unsupported type
|===


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