[#BloombergLP-bdlb-String-rtrim-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/String.adoc[String]::rtrim
:relfileprefix: ../../../
:mrdocs:

Remove trailing whitespace characters from `string`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
rtrim(std::string* string);
----

== Description

If `string` consists of only whitespace then it will be empty (i&period;e&period;, have 0 length) after this operation&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *string*
| string to trim
|===


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