[#BloombergLP-bslfmt-PadUtil-pad-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::xref:BloombergLP/bslfmt/PadUtil.adoc[PadUtil]::pad
:relfileprefix: ../../../
:mrdocs:

`pad` overloads

== Synopses

Declared in `&lt;bslfmt&lowbar;padutil&period;h&gt;`

Write `padWidth` copies of `filler` through the specified output iterator&period; Write `padWidth` copies of the specified single&hyphen;character `filler`&period; Write `padWidth` copies of the specified single&hyphen;character `filler`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ITERATOR&gt;
static
t&lowbar;ITERATOR
xref:BloombergLP/bslfmt/PadUtil/pad-07.adoc[pad](
    t&lowbar;ITERATOR out,
    std::ptrdiff&lowbar;t padWidth,
    char filler);
----

[.small]#xref:BloombergLP/bslfmt/PadUtil/pad-07.adoc[_» more&period;&period;&period;_]#

Write `padWidth` copies of the specified single wide&hyphen;character `filler`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ITERATOR&gt;
static
t&lowbar;ITERATOR
xref:BloombergLP/bslfmt/PadUtil/pad-02c.adoc[pad](
    t&lowbar;ITERATOR out,
    std::ptrdiff&lowbar;t padWidth,
    wchar&lowbar;t filler);
----

[.small]#xref:BloombergLP/bslfmt/PadUtil/pad-02c.adoc[_» more&period;&period;&period;_]#

Write the specified `filler` (possibly a multi&hyphen;byte unicode sequence) to the specified `out` the specified `padWidth` times and return the new output iterator&period; If `padWidth &lt; 0`, no output is done&period; The behavior is undefined unless the character type of `filler` is the same as `t&lowbar;CHAR` or `filler` is entirely ascii&period; Note that the overloads that input a single character have an advantage over `bsl&colon;&colon;fill&lowbar;n` in that they will automatically widen or narrow the input character to `t&lowbar;CHAR` if necessary&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ITERATOR&gt;
static
t&lowbar;ITERATOR
xref:BloombergLP/bslfmt/PadUtil/pad-01.adoc[pad](
    t&lowbar;ITERATOR out,
    std::ptrdiff&lowbar;t padWidth,
    std::string&lowbar;view const& filler);
----

[.small]#xref:BloombergLP/bslfmt/PadUtil/pad-01.adoc[_» more&period;&period;&period;_]#

Same as the preceding `pad` overload, for wide string fillers&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ITERATOR&gt;
static
t&lowbar;ITERATOR
xref:BloombergLP/bslfmt/PadUtil/pad-020.adoc[pad](
    t&lowbar;ITERATOR out,
    std::ptrdiff&lowbar;t padWidth,
    std::wstring&lowbar;view const& filler);
----

[.small]#xref:BloombergLP/bslfmt/PadUtil/pad-020.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
