Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Sort
(
T* First, |
Sort elements. | Templates/Sorting.h | |
void Sort
(
T** First, |
Specialized version of the above Sort function for pointers to elements. | Templates/Sorting.h | |
void Sort
(
T* First, |
Sort elements using user defined predicate class. | Templates/Sorting.h | |
void Sort
(
T** First, |
Specialized version of the above Sort function for pointers to elements. | Templates/Sorting.h |
Sort(T *, const int32)
Description
Sort elements. The sort is unstable, meaning that the ordering of equal items is not necessarily preserved. Assumes < operator is defined for the template type.
| Name | Sort |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/Sorting.h |
| Include Path | #include "Templates/Sorting.h" |
template<class T>
void Sort
(
T * First,
const int32 Num
)
Parameters
| Name | Remarks |
|---|---|
| First | pointer to the first element to sort |
| Num | the number of items to sort |
Sort(T **, const int32)
Description
Specialized version of the above Sort function for pointers to elements.
| Name | Sort |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/Sorting.h |
| Include Path | #include "Templates/Sorting.h" |
template<class T>
void Sort
(
T ** First,
const int32 Num
)
Parameters
| Name | Remarks |
|---|---|
| First | pointer to the first element to sort |
| Num | the number of items to sort |
Sort(T *, const int32, const PREDICATE_CLASS &)
Description
Sort elements using user defined predicate class. The sort is unstable, meaning that the ordering of equal items is not necessarily preserved.
| Name | Sort |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/Sorting.h |
| Include Path | #include "Templates/Sorting.h" |
template<class T, class PREDICATE_CLASS>
void Sort
(
T * First,
const int32 Num,
const PREDICATE_CLASS & Predicate
)
Parameters
| Name | Remarks |
|---|---|
| First | pointer to the first element to sort |
| Num | the number of items to sort |
| Predicate | predicate class |
Sort(T **, const int32, const PREDICATE_CLASS &)
Description
Specialized version of the above Sort function for pointers to elements.
| Name | Sort |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/Sorting.h |
| Include Path | #include "Templates/Sorting.h" |
template<class T, class PREDICATE_CLASS>
void Sort
(
T ** First,
const int32 Num,
const PREDICATE_CLASS & Predicate
)
Parameters
| Name | Remarks |
|---|---|
| First | pointer to the first element to sort |
| Num | the number of items to sort |
| Predicate | predicate class |