[#absl-Cord-Prepend-0fa]
= xref:absl.adoc[absl]::xref:absl/Cord.adoc[Cord]::Prepend
:relfileprefix: ../../
:mrdocs:

`Prepend` overloads

== Synopses

Declared in `&lt;absl&sol;strings&sol;cord&period;h&gt;`

Prepends `buffer` to this cord, unless `buffer` has a zero length in which case this method has no effect on this cord instance&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:absl/Cord/Prepend-0f4.adoc[Prepend](xref:absl/CordBuffer.adoc[CordBuffer] buffer);
----

[.small]#xref:absl/Cord/Prepend-0f4.adoc[_» more&period;&period;&period;_]#

Prepends string data to this Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:absl/Cord/Prepend-07.adoc[Prepend](std::string&lowbar;view src);
----

[.small]#xref:absl/Cord/Prepend-07.adoc[_» more&period;&period;&period;_]#

Prepends another Cord to this Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:absl/Cord/Prepend-0c.adoc[Prepend](xref:absl/Cord.adoc[Cord] const& src);
----

[.small]#xref:absl/Cord/Prepend-0c.adoc[_» more&period;&period;&period;_]#

Prepends string data to this Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    xref:absl/Cord.adoc[EnableIfString&lt;T&gt;] = 0&gt;
void
xref:absl/Cord/Prepend-02.adoc[Prepend](T&& src);
----

[.small]#xref:absl/Cord/Prepend-02.adoc[_» more&period;&period;&period;_]#

== Template Parameters

[cols="1,4"]
|===
| Name| Description
| *T*
| The string type being consumed&period;
|===

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buffer*
| The buffer whose contents are prepended&period;
| *src*
| The string data to prepend&period;
|===


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