Constructors
Declared in <absl/strings/cord.h>
Creates an empty Cord.
constexpr
Cord() noexcept;
» more...
Creates a Cord from an existing Cord.
Cord(Cord const& src);
» more...
Creates a Cord by moving from an existing Cord.
Cord(Cord&& src) noexcept;
» more...
Creates a Cord from a src string.
explicit
Cord(std::string_view src);
» more...
Creates a Cord with the contents of StringConstant<T>::value.
template<typename T>
constexpr
Cord(/* implementation-defined */::StringConstant<T> value);
» more...
Creates a Cord from a std::string&& rvalue.
template<
typename T,
EnableIfString<T> = 0>
explicit
Cord(T&& src);
» more...
| Name | Description |
|---|---|
| T | The string-constant type providing the contents. |
| Name | Description |
|---|---|
| src | The Cord to copy from. |
| value | The string constant that provides the contents. |