Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

setfill

 

Sets the character that will be used to fill spaces in a right-justified display.


   template<class Elem>
T4 setfill(
   Elem _Ch
);

_Ch

The character that will be used to fill spaces in a right-justified display.

The template manipulator returns an object that, when extracted from or inserted into the stream str, calls str.fill(_Ch), and then returns str. The type Elem must be the same as the element type for the stream str.

Example

See setw for an example of using setfill.

Requirements

Header: <iomanip>

Namespace: std

Show: