![]() |
MCRO
C++23 utilities for Unreal Engine.
|
Output a range of tuples or range of ranges with at least 2 elements to an already existing TMap. More...
#include <Conversion.h>
Public Member Functions | |
OutputToMap (Target &target) | |
Friends | |
template<CRangeMember From, CTupleConvertsToArgs< KeyType, ValueType > = TRangeElementType<From>> | |
Target & | operator| (From &&range, OutputToMap &&functor) |
Output a range of tuples or range of ranges with at least 2 elements to an already existing TMap.
This functor will iterate over the entire input range and copy its values to the existing TMap one-by-one with its Add
function.
When working with range-of-ranges then ranges which doesn't have at least two elements will be silently ignored.
usage (from tuples):
usage (from inner-ranges):
Target | A TMap. Its key-value types will be deduced from the target output map. |
Definition at line 506 of file Conversion.h.
|
inline |
Definition at line 513 of file Conversion.h.
|
friend |
Definition at line 519 of file Conversion.h.