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);

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);

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);

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);

Return Value

the output iterator after writing the filler repetitions

Parameters

Name

Description

out

output iterator receiving the filler repetitions

padWidth

number of times to write filler; no output if < 0

filler

single character written as each padding unit

Created with MrDocs