Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/Serialization
References
| Module | CoreUObject |
| Header | /Engine/Source/Runtime/CoreUObject/Public/Serialization/DerivedData.h |
| Include | #include "Serialization/DerivedData.h" |
Syntax
template<typename CharType>
class TSharedString
Remarks
A reference to an immutable, shared, reference-counted string.
Prefer TStringView when there is a clear single point of ownership with a longer lifetime than the references to the string. This type is meant for cases where a shared string does not have an obvious owner or where the lifetime is not easy to manage.
The string is stored as a pointer to the start of the null-terminated string which is preceded by a 4-byte reference count and a 4-byte size.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TSharedString
(
TSharedString&& String |
|||
TSharedString
(
const TSharedString& String |
|||
TSharedString
(
TStringView< CharType > String |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
Operators
| Type | Name | Description | |
|---|---|---|---|
| const CharType * | operator* () |
||
| TSharedString & | operator=
(
TSharedString&& String |
||
| TSharedString & | operator=
(
const TSharedString& String |
||
| TSharedString & | operator=
(
TStringView< CharType > String |