Class
FormattedNumberHelper class for storing a numeric value together with a
printf format string.
Helper class for storing a numeric value together with a
printf format string.
Implements | NumberConcept |
---|---|
All Impl'd | NumberConcept |
Defined in | <seqan/basic.h> |
Signature |
template <typename TValue>
struct FormattedNumber;
|
Template Parameters
The |
numeric value type. |
---|
Member Function Overview
-
FormattedNumber::FormattedNumber(format, value);
Constructor.
Member Functions Detail
FormattedNumber::FormattedNumber(format, value);
Constructor.
Parameters
format
|
A char const * for the format string. |
---|---|
value
|
The TValue to store. |
The constructed FormattedNumber object store the format pointer "as is". This means that you are responsible for keeping this pointer valid until the object is deconstructed. Passing in a C string literal (as in FormattedNumber<double>("%.2f", 1.234) is fine.
Data Races
If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.