Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TStripedMapBase
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool FindAndApply
(
KeyConstPointerType InKey, |
Calls a function when the value is found while holding a lock on the map. | Containers/StripedMap.h | |
bool FindAndApply
(
KeyConstPointerType InKey, |
Calls a function to update a value if it has been found. | Containers/StripedMap.h |
FindAndApply(KeyConstPointerType, FunctionType &&)
Description
Calls a function when the value is found while holding a lock on the map.
Best for more complex types that you don't want to wrap under TSharedPtr and where returning a copy would be wasteful.
| Name | FindAndApply |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/StripedMap.h |
| Include Path | #include "Containers/StripedMap.h" |
template<typename FunctionType>
bool FindAndApply
(
KeyConstPointerType InKey,
FunctionType && InFunction
) const
true if the map contains the key and a value was found.
Parameters
| Name | Remarks |
|---|---|
| InKey | The key to look for. |
| InFunction | The function to call on the value (if found). |
FindAndApply(KeyConstPointerType, UpdateFunctionType &&)
Description
Calls a function to update a value if it has been found.
| Name | FindAndApply |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/StripedMap.h |
| Include Path | #include "Containers/StripedMap.h" |
template<typename UpdateFunctionType>
bool FindAndApply
(
KeyConstPointerType InKey,
UpdateFunctionType && InUpdateFunction
)
true if the map contains the key and a value was found.
Parameters
| Name | Remarks |
|---|---|
| InKey | The key to check for. |
| InUpdateFunction | The function to call on the value (if found). |