Navigation
API > API/Plugins > API/Plugins/MetasoundGraphCore
Type
typedef TSortedMap< FVertexName, ValueType, FDefaultAllocator, FNameFastLess > TSortedVertexNameMap
References
| Module | MetasoundGraphCore |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGraphCore/Public/MetasoundVertexData.h |
| Include | #include "MetasoundVertexData.h" |
Remarks
Convenience for using a TSortedMap with FVertexName Key type.
This template makes it convenient to create a TSortedMap with an FVertexName while also avoiding compilation errors incurred from using the FName default "less than" operator in the TSortedMap implementation.
- FVertexName is an alias to FName.
- TSortedMap
fails to compile since the "less than" operator specific implementation needs to be chosen (FastLess vs LexicalLess) - Due to the template argument order of TSortedMap this also forces you to choose the allocator.
- This is all a bit of an annoyance to do every time we use a TSortedMap with an FVertexName as the key.