Namespaces
Variants
Views
Actions

std::basic_ios::fill

From cppreference.com
< cpp‎ | io‎ | basic ios
Revision as of 21:56, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
CharT fill() const;
</td>

<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
CharT fill( CharT ch );
</td>

<td > (2) </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

Manages the fill character used to pad the output conversions to the specified field width.

1) returns the current fill character

2) sets the fill character to ch, returns previous value of the fill character

Parameters

ch - the character to use as fill character

Return value

the fill character before the call to the function.

Example