Share via


setfill

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

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

Parameters

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

Return Value

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

See Also

Reference

iostream Programming

iostreams Conventions

Other Resources

<iomanip> Members