Navigation
API > API/Runtime > API/Runtime/Core
Wrapper type for Iterators that return a structure by value from operator*, and want to support Iter->Property to behave the same as (Iter).Property. When returning a structure by reference, operator automatically handles -> as well, but when returning by value it does not.
Example: struct FIterator { public: ... // The problematic return-by-value structure from operator* // Without operator->, (Iter).Key compiles but Iter->Key does not. TPair
// TArrowWrapper takes the value from operator* and allows -> to access it. TArrowWrapper
| Name | TArrowWrapper |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/ArrowWrapper.h |
| Include Path | #include "Containers/ArrowWrapper.h" |
Syntax
template<typename WrappedType>
struct TArrowWrapper
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TArrowWrapper
(
const WrappedType& InValue |
Containers/ArrowWrapper.h | ||
TArrowWrapper
(
WrappedType&& InValue |
Containers/ArrowWrapper.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Value | WrappedType | Containers/ArrowWrapper.h |
Functions
Public
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const WrappedType * operator->() |
Containers/ArrowWrapper.h |