absl::Cord::Prepend

Prepend overloads

Synopses

Declared in <absl/strings/cord.h>

Prepends buffer to this cord, unless buffer has a zero length in which case this method has no effect on this cord instance.

void
Prepend(CordBuffer buffer);
» more...

Prepends string data to this Cord.

void
Prepend(std::string_view src);
» more...

Prepends another Cord to this Cord.

void
Prepend(Cord const& src);
» more...

Prepends string data to this Cord.

template<
    typename T,
    EnableIfString<T> = 0>
void
Prepend(T&& src);
» more...

Template Parameters

NameDescription
TThe string type being consumed.

Parameters

NameDescription
bufferThe buffer whose contents are prepended.
srcThe string data to prepend.