absl::Cord::Prepend

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

Synopsis

Declared in <absl/strings/cord.h>

void
Prepend(CordBuffer buffer);

Description

This method is guaranteed to consume buffer.

Parameters

NameDescription
bufferThe buffer whose contents are prepended.