BloombergLP::bslfmt::PadUtil::pad

Write padWidth copies of a single wide-character filler through out.

Synopsis

Declared in <bslfmt_padutil.h>

template<class t_ITERATOR>
static
t_ITERATOR
pad(
    t_ITERATOR out,
    std::ptrdiff_t padWidth,
    wchar_t filler);

Return Value

the output iterator after writing the filler repetitions

Parameters

NameDescription
outoutput iterator receiving the filler repetitions
padWidthnumber of times to write filler; no output if < 0
fillersingle wide character written as each padding unit