Constructors

Synopses

Declared in <balm_metricformat.h>

Create a metric format spec having default values for scale and format. The default value for scale is 1.0 and the default value for format is "%f".

Create a metric format spec having the same value as the specified original format spec. The behavior is undefined unless original.format() remains valid and unmodified for the lifetime of this object.

Create a metric format spec having the specified scale and format. The scale indicates the multiplier that may be used when formatting values, and format must be a printf‐style format string for formatting a single floating‐point value. The behavior is undefined unless format is null‐terminated, contains a printf‐style format string valid for a single floating‐point value, and remains valid and unmodified for the lifetime of this object.

MetricFormatSpec(
    float scale,
    char const* format);

Created with MrDocs