This enum give upper bounds on the maximum string lengths storing each scalar numerical type, and the starting value for long double that can get way too long for stack storage when printed. It is safe to use stack‐allocated buffers of these sizes for generating decimal representations of the corresponding type, including sign and terminating null character, using the default precision of 6 significant digits for floating point types.
Synopsis
Declared in <bslstl_string.h>
enum MaxDecimalStringLengths;
Members
Name |
Description |
|
Maximum decimal string length for a |
|
Maximum decimal string length for an |
|
Maximum decimal string length for an |
|
Maximum string length for a |
|
Maximum string length for a |
|
Maximum string length for a |
|
Maximum string length for a |
|
Maximum string length for a |
Created with MrDocs