28 Localization library [localization]

28.4 Standard locale categories [locale.categories]

28.4.3 The numeric category [category.numeric]

28.4.3.3 Class template num_­put [locale.nm.put]

28.4.3.3.3 Virtual functions [facet.num.put.virtuals]

Table 112: Integer conversions [tab:facet.num.put.int]
State
stdio equivalent
basefield == ios_­base​::​oct
%o
(basefield == ios_­base​::​hex) && !uppercase
%x
(basefield == ios_­base​::​hex)
%X
for a signed integral type
%d
for an unsigned integral type
%u