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

Prepends string data to this Cord.

void
Prepend(std::string_view src);

Prepends another Cord to this Cord.

void
Prepend(Cord const& src);

Prepends string data to this Cord.

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

Template Parameters

Name

Description

T

The string type being consumed.

Parameters

Name

Description

buffer

The buffer whose contents are prepended.

src

The string data to prepend.

Created with MrDocs