Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/TArrayG
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULANG_FORCEINLINE const ElementType * FindByKey
(
const KeyType& Key |
Finds an item by key (assuming the ElementType overloads operator== for the comparison). | uLang/Common/Containers/Array.h | |
ElementType * FindByKey
(
const KeyType& Key |
Finds an item by key (assuming the ElementType overloads operator== for the comparison). | uLang/Common/Containers/Array.h |
FindByKey(const KeyType &)
Description
Finds an item by key (assuming the ElementType overloads operator== for the comparison).
| Name | FindByKey |
| Type | function |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/Array.h |
| Include Path | #include "uLang/Common/Containers/Array.h" |
template<typename KeyType>
ULANG_FORCEINLINE const ElementType * FindByKey
(
const KeyType & Key
) const
Pointer to the first matching element, or nullptr if none is found.
Parameters
| Name | Remarks |
|---|---|
| Key | The key to search by. |
See Also
- Find
FindByKey(const KeyType &)
Description
Finds an item by key (assuming the ElementType overloads operator== for the comparison). Time Complexity: O(n), starts iteration from the beginning so better performance if Key is in the front
| Name | FindByKey |
| Type | function |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/Array.h |
| Include Path | #include "uLang/Common/Containers/Array.h" |
template<typename KeyType>
ElementType * FindByKey
(
const KeyType & Key
)
Pointer to the first matching element, or nullptr if none is found.
Parameters
| Name | Remarks |
|---|---|
| Key | The key to search by. |
See Also
- Find