BloombergLP::bslfmt::PadUtil::pad

pad overloads

Synopses

Declared in <bslfmt_padutil.h>

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

template<class t_ITERATOR>
static
t_ITERATOR
pad(
    t_ITERATOR out,
    std::ptrdiff_t padWidth,
    char filler);
» more...

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

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

Write filler to out the specified padWidth times.

template<class t_ITERATOR>
static
t_ITERATOR
pad(
    t_ITERATOR out,
    std::ptrdiff_t padWidth,
    std::string_view const& filler);
» more...

Write a wide-string filler to out the specified padWidth times.

template<class t_ITERATOR>
static
t_ITERATOR
pad(
    t_ITERATOR out,
    std::ptrdiff_t padWidth,
    std::wstring_view const& filler);
» more...

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 character written as each padding unit