TSortableMapBase::ValueStableSort

Stable sorts the pairs array using each pair's Value as the sort criteria, then rebuilds the map's hash.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Map.h

Include

#include "Containers/Map.h"

Syntax

template<typename PREDICATE_CLASS>
void ValueStableSort
(
    const PREDICATE_CLASS & Predicate
)

Remarks

Stable sorts the pairs array using each pair's Value as the sort criteria, then rebuilds the map's hash. Invoked using "MyMapVar.ValueSort( PREDICATE_CLASS() );"

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss