[#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`. == Synopsis Declared in `<bdlb_string.h>` [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.e., have 0 length) after this operation. == Parameters [cols="1,4"] |=== | Name| Description | *string* | string to trim |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#