Home   Manual   Type Index   Symbol Index   Topics Index

std::pad_right

extends a string to a specified width

Parameters

expr

the expression that is converted into a string

n

the length of the resulting string

pad (optional; default value: " ")

the pattern used to fill up the string

Description

This function creates a string representation of expr which is at least n characters long. If it would be shorter than it is padded to the right with the pattern stored in pad.

# pad_or_truncate, truncate

See also

std::pad_left   extends a string to a specified width