absl::Cord::operator=

Assignment operators

Synopses

Declared in <absl/strings/cord.h>

Assigns the contents of another Cord to this Cord.

Cord&
operator=(Cord const& x);
» more...

Move-assigns the contents of another Cord to this Cord.

Cord&
operator=(Cord&& x) noexcept;
» more...

Assigns a string to this Cord.

Cord&
operator=(std::string_view src);
» more...

Assigns a std::string&& rvalue to this Cord.

template<
    typename T,
    Cord::EnableIfString<T> = 0>
Cord&
operator=(T&& src);
» more...

Return Value

A reference to this Cord.

Template Parameters

NameDescription
TThe string type being consumed.

Parameters

NameDescription
xThe Cord to copy from.
srcThe string data to copy into the Cord.