[#BloombergLP-bdlb-String-rtrim-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/String.adoc[String]::rtrim :relfileprefix: ../../../ :mrdocs: Remove all trailing whitespace characters from the specified `string`. If `string` consists of only whitespace then it will be empty (i.e., have 0 length) after this operation. == Synopsis Declared in `<bdlb_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void rtrim(std::string* string); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#