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