Assignment operators
Synopses
Declared in <absl/strings/cord.h>
Assigns the contents of another Cord to this Cord.
Cord&
operator=(Cord const& x);
Move‐assigns the contents of another Cord to this Cord.
Cord&
operator=(Cord&& x) noexcept;
Assigns a string to this Cord.
Cord&
operator=(std::string_view src);
Assigns a std::string&& rvalue to this Cord.
template<
typename T,
Cord::EnableIfString<T> = 0>
Cord&
operator=(T&& src);
Return Value
A reference to this Cord.
Template Parameters
Name |
Description |
T |
The string type being consumed. |
Parameters
Name |
Description |
x |
The Cord to copy from. |
src |
The string data to copy into the Cord. |
Created with MrDocs