Remove trailing whitespace characters from string.

Synopsis

Declared in <bdlb_string.h>

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

Name

Description

string

string to trim

Created with MrDocs