|
6432 | 6432 | \tcode{const void*},
|
6433 | 6433 | the formatting conversion occurs as if it performed the following code fragment:
|
6434 | 6434 | \begin{codeblock}
|
6435 |
| -bool failed = use_facet< |
6436 |
| - num_put<charT, ostreambuf_iterator<charT, traits>> |
6437 |
| - >(getloc()).put(*this, *this, fill(), val).failed(); |
| 6435 | +bool failed = use_facet<num_put<charT, ostreambuf_iterator<charT, traits>>>( |
| 6436 | + getloc()).put(*this, *this, fill(), val).failed(); |
6438 | 6437 | \end{codeblock}
|
6439 | 6438 |
|
6440 | 6439 | When \tcode{val} is of type
|
6441 | 6440 | \tcode{short}
|
6442 | 6441 | the formatting conversion occurs as if it performed the following code fragment:
|
6443 | 6442 | \begin{codeblock}
|
6444 | 6443 | ios_base::fmtflags baseflags = ios_base::flags() & ios_base::basefield;
|
6445 |
| -bool failed = use_facet< |
6446 |
| - num_put<charT, ostreambuf_iterator<charT, traits>> |
6447 |
| - >(getloc()).put(*this, *this, fill(), |
| 6444 | +bool failed = use_facet<num_put<charT, ostreambuf_iterator<charT, traits>>>( |
| 6445 | + getloc()).put(*this, *this, fill(), |
6448 | 6446 | baseflags == ios_base::oct || baseflags == ios_base::hex
|
6449 | 6447 | ? static_cast<long>(static_cast<unsigned short>(val))
|
6450 | 6448 | : static_cast<long>(val)).failed();
|
|
6455 | 6453 | the formatting conversion occurs as if it performed the following code fragment:
|
6456 | 6454 | \begin{codeblock}
|
6457 | 6455 | ios_base::fmtflags baseflags = ios_base::flags() & ios_base::basefield;
|
6458 |
| -bool failed = use_facet< |
6459 |
| - num_put<charT, ostreambuf_iterator<charT, traits>> |
6460 |
| - >(getloc()).put(*this, *this, fill(), |
| 6456 | +bool failed = use_facet<num_put<charT, ostreambuf_iterator<charT, traits>>>( |
| 6457 | + getloc()).put(*this, *this, fill(), |
6461 | 6458 | baseflags == ios_base::oct || baseflags == ios_base::hex
|
6462 | 6459 | ? static_cast<long>(static_cast<unsigned int>(val))
|
6463 | 6460 | : static_cast<long>(val)).failed();
|
|
6469 | 6466 | \tcode{unsigned int}
|
6470 | 6467 | the formatting conversion occurs as if it performed the following code fragment:
|
6471 | 6468 | \begin{codeblock}
|
6472 |
| -bool failed = use_facet< |
6473 |
| - num_put<charT, ostreambuf_iterator<charT, traits>> |
6474 |
| - >(getloc()).put(*this, *this, fill(), |
6475 |
| - static_cast<unsigned long>(val)).failed(); |
| 6469 | +bool failed = use_facet<num_put<charT, ostreambuf_iterator<charT, traits>>>( |
| 6470 | + getloc()).put(*this, *this, fill(), static_cast<unsigned long>(val)).failed(); |
6476 | 6471 | \end{codeblock}
|
6477 | 6472 |
|
6478 | 6473 | When \tcode{val} is of type
|
6479 | 6474 | \tcode{float}
|
6480 | 6475 | the formatting conversion occurs as if it performed the following code fragment:
|
6481 | 6476 | \begin{codeblock}
|
6482 |
| -bool failed = use_facet< |
6483 |
| - num_put<charT, ostreambuf_iterator<charT, traits>> |
6484 |
| - >(getloc()).put(*this, *this, fill(), |
6485 |
| - static_cast<double>(val)).failed(); |
| 6477 | +bool failed = use_facet<num_put<charT, ostreambuf_iterator<charT, traits>>>( |
| 6478 | + getloc()).put(*this, *this, fill(), static_cast<double>(val)).failed(); |
6486 | 6479 | \end{codeblock}
|
6487 | 6480 |
|
6488 | 6481 | \pnum
|
|
6539 | 6532 | is less than or equal to that of \tcode{double},
|
6540 | 6533 | the formatting conversion occurs as if it performed the following code fragment:
|
6541 | 6534 | \begin{codeblock}
|
6542 |
| -bool failed = use_facet< |
6543 |
| - num_put<charT, ostreambuf_iterator<charT, traits>> |
6544 |
| - >(getloc()).put(*this, *this, fill(), |
6545 |
| - static_cast<double>(val)).failed(); |
| 6535 | +bool failed = use_facet<num_put<charT, ostreambuf_iterator<charT, traits>>>( |
| 6536 | + getloc()).put(*this, *this, fill(), static_cast<double>(val)).failed(); |
6546 | 6537 | \end{codeblock}
|
6547 | 6538 | Otherwise,
|
6548 | 6539 | if the floating-point conversion rank of \tcode{\placeholder{extended-floating-point-type}}
|
6549 | 6540 | is less than or equal to that of \tcode{long double},
|
6550 | 6541 | the formatting conversion occurs as if it performed the following code fragment:
|
6551 | 6542 | \begin{codeblock}
|
6552 |
| -bool failed = use_facet< |
6553 |
| - num_put<charT, ostreambuf_iterator<charT, traits>> |
6554 |
| - >(getloc()).put(*this, *this, fill(), |
6555 |
| - static_cast<long double>(val)).failed(); |
| 6543 | +bool failed = use_facet<num_put<charT, ostreambuf_iterator<charT, traits>>>( |
| 6544 | + getloc()).put(*this, *this, fill(), static_cast<long double>(val)).failed(); |
6556 | 6545 | \end{codeblock}
|
6557 | 6546 | Otherwise, an invocation of the operator function is conditionally supported
|
6558 | 6547 | with \impldef{\tcode{operator<<} for large extended floating-point types}
|
|
0 commit comments