Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/uLang > API/Runtime/uLangCore/uLang/Common > API/Runtime/uLangCore/uLang/Common/Containers
Inheritance Hierarchy
- TUPtrArrayG
- TUPtrSetG
References
| Module | uLangCore |
| Header | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/UniquePointerSet.h |
| Include | #include "uLang/Common/Containers/UniquePointerSet.h" |
Syntax
template<typename InElementType, bool AllowNull, typename InKeyType, typename InElementAllocatorType, typename... RawAllocatorArgsType>
class TUPtrSetG : protected uLang::TUPtrArrayG< InElementType, AllowNull, InElementAllocatorType, RawAllocatorArgsType... >
Remarks
Templated dynamic set of shared pointers to elements This is similar to TUPtrArrayG, plus elements are always kept in sorted order and looked up via binary search
Constructors
| Type | Name | Description | |
|---|---|---|---|
| ULANG_FORCEINLINE | TUPtrSetG
(
RawAllocatorArgsType&&... RawAllocatorArgs |
Constructor | |
| ULANG_FORCEINLINE | Move constructor. | ||
| Move constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| ULANG_FORCEINLINE int32_t | Add
(
PointerType&& Item |
Adds a new item. Must not exist yet.Move semantics version. | |
| ULANG_FORCEINLINE int32_t | AddNew
(
CtorArgsType&&... CtorArgs |
Constructs a new item at the end of the array, possibly reallocating the whole array to fit. | |
| void | Appends the specified array to this array.Allocator changing version. | ||
| void | Appends the specified array to this array. | ||
| bool | Checks if this array contains the element. | ||
| ULANG_FORCEINLINEElementType * | Finds an item by key (assuming the ElementType overloads operator== for the comparison). | ||
| int32_t | Finds an item by key (assuming the ElementType overloads operator< and operator== for the comparison). | ||
| int32_t | Removes as many instances of Item as there are in the array, maintaining order but not indices. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TUPtrSetG & | operator+=
(
TUPtrSetG&& Other |
Appends the specified array to this array. Cannot append to self.Move semantics version. | |
| TUPtrSetG & | operator+=
(
const TUPtrSetG& Other |
Appends the specified array to this array. Cannot append to self. |