absl::FormatConversionSpec::has_show_pos_flag

Indicates whether a sign column is prepended to the result for this conversion character in the format string, even if the result is positive.

Synopsis

Declared in <absl/strings/str_format.h>

bool
has_show_pos_flag() const;

Description

This flag is set through use of a '+' character in the format string. E.g. "%+d"

Return Value

true if the show-positive-sign flag is set.