Shared immutable string container. More...
#include <kanzi/core/string/shared_immutable_string.hpp>
Public Member Functions | |
SharedImmutableString () | |
Constructor. More... | |
SharedImmutableString (string_view content) | |
Constructor. More... | |
SharedImmutableString (const SharedImmutableString &other) | |
Copy constructor. More... | |
SharedImmutableString (KZ_RV_REF(SharedImmutableString) other) | |
Move constructor. More... | |
const char * | c_str () const |
Access string data. More... | |
operator string_view () const | |
string_view operator. More... | |
SharedImmutableString & | operator= (const SharedImmutableString &other) |
Assignment operator. More... | |
SharedImmutableString & | operator= (KZ_RV_REF(SharedImmutableString) other) |
Move operator. More... | |
Friends | |
void | swap (SharedImmutableString &left, SharedImmutableString &right) |
Swap operation. More... | |
Shared immutable string container.
Represents a shared string that is allocated dynamically but cannot be changed.
|
inlineexplicit |
Constructor.
|
inlineexplicit |
Constructor.
content | String to construct from. |
|
inline |
Copy constructor.
other | Source string. |
|
inline |
Move constructor.
other | Source string. |
|
inline |
Access string data.
|
inline |
string_view operator.
|
inline |
Assignment operator.
other | Source string. |
|
inline |
Move operator.
other | Source string. |
|
friend |
Swap operation.
left | Left operand. |
right | Right operand. |