Navigation
API > API/Runtime > API/Runtime/Core
Template for fluent map builders.
| Name | TMapBuilder |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/MapBuilder.h |
| Include Path | #include "Containers/MapBuilder.h" |
Syntax
template<typename KeyType, typename ValueType, typename SetAllocator>
class TMapBuilder
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TMapBuilder () |
Default constructor. | Containers/MapBuilder.h | |
TMapBuilder
(
const TMap< KeyType, ValueType, OtherAllocator >& InMap |
Creates and initializes a new map builder from another map. | Containers/MapBuilder.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Map | TMap< KeyType, ValueType, SetAllocator > | Holds the map being built. | Containers/MapBuilder.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TMapBuilder & Add
(
KeyType InKey, |
Adds a key-value pair to the map. | Containers/MapBuilder.h | |
TMapBuilder & Append
(
const TMap< KeyType, ValueType, SetAllocator >& OtherMap |
Appends another map. | Containers/MapBuilder.h | |
TMap< KeyType, ValueType, SetAllocator > Build() |
Builds the map as configured. | Containers/MapBuilder.h |