Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TOptional
Overloads
Name
Remarks
Include Path
Unreal Specifiers
Use is_constructible traits instead of is_assignable, because it uses Emplace, which always uses construction.
Misc/Optional.h
Misc/Optional.h
Misc/Optional.h
Use is_constructible traits instead of is_assignable, because it uses Emplace, which always uses construction.
Misc/Optional.h
Misc/Optional.h
Misc/Optional.h
Misc/Optional.h
Misc/Optional.h
operator=(const TOptional &)
Description
Use is_constructible traits instead of is_assignable, because it uses Emplace, which always uses construction. If trivially copy constructible but not trivially copy assignable, handle this here too, so we don't accidentally copy assign.
Name
operator=
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Misc/Optional.h
Include Path
#include "Misc/Optional.h"
TOptional & operator=
(
const TOptional & Other
)
Copy full snippet
operator=(const TOptional &)
Name
operator=
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Misc/Optional.h
Include Path
#include "Misc/Optional.h"
TOptional & operator=
(
const TOptional & Other
)
Copy full snippet
operator=(const TOptional &)
Name
operator=
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Misc/Optional.h
Include Path
#include "Misc/Optional.h"
TOptional & operator=
(
const TOptional & Other
)
Copy full snippet
operator=(TOptional &&)
Description
Use is_constructible traits instead of is_assignable, because it uses Emplace, which always uses construction. If trivially move constructible but not trivially move assignable, handle this here too, so we don't accidentally move assign.
Name
operator=
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Misc/Optional.h
Include Path
#include "Misc/Optional.h"
TOptional & operator=
(
TOptional && Other
)
Copy full snippet
operator=(TOptional &&)
Name
operator=
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Misc/Optional.h
Include Path
#include "Misc/Optional.h"
TOptional & operator=
(
TOptional && Other
)
Copy full snippet
operator=(TOptional &&)
Name
operator=
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Misc/Optional.h
Include Path
#include "Misc/Optional.h"
TOptional & operator=
(
TOptional && Other
)
Copy full snippet
operator=(const OptionalType &)
Name
operator=
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Misc/Optional.h
Include Path
#include "Misc/Optional.h"
TOptional & operator=
(
const OptionalType & InValue
)
Copy full snippet
operator=(OptionalType &&)
Name
operator=
Type
function
Header File
/Engine/Source/Runtime/Core/Public/Misc/Optional.h
Include Path
#include "Misc/Optional.h"
TOptional & operator=
(
OptionalType && InValue
)
Copy full snippet