Shared immutable string container. More...
#include <kanzi/core/string/shared_immutable_string.hpp>
Public Member Functions | |
| const char * | c_str () const |
| Access string data. | |
| operator string_view () const | |
| string_view operator. | |
| SharedImmutableString & | operator= (const SharedImmutableString &other) |
| Assignment operator. | |
| SharedImmutableString & | operator= (SharedImmutableString &&other) noexcept |
| Move operator. | |
| SharedImmutableString () | |
| Constructor. | |
| SharedImmutableString (const SharedImmutableString &other) | |
| Copy constructor. | |
| SharedImmutableString (SharedImmutableString &&other) noexcept | |
| Move constructor. | |
| SharedImmutableString (string_view content) | |
| Constructor. | |
Friends | |
| void | swap (SharedImmutableString &left, SharedImmutableString &right) |
| Swap operation. | |
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. |
|
inlinenoexcept |
Move constructor.
| other | Source string. |
Access string data.
|
inline |
string_view operator.
|
inline |
Assignment operator.
| other | Source string. |
|
inlinenoexcept |
Move operator.
| other | Source string. |
|
friend |
Swap operation.
| left | Left operand. |
| right | Right operand. |