Map container reliability

will calling “get keys” and “get values” back-to-back (no other code ran between them) from a map container reliably give you arrays whose values “pair by index” (i cant think of a better word)?

example. keys_array[3] and values_array[3] are a pair from the original map container?
I hope i explained this well enough.

1 Like

I believe so. Have you seen otherwise?

no but the documentation is very light on this. The closest information I found is on the C++ side. TMaps are sorted, which would mean it should work, but blueprints don’t always fall in line with C++.

Basically, if Map Containers aren’t reliable in this way, I will have to reconfigure the data structure later and it will be a pain of manually re-entering tons of data. I was hoping to get a clear answer before committing to the choice of data container.

1 Like

Ah, more information. Then no, not at all reliable.

A map has no ordering, you will get the same values for the same keys, but it intentionally has no ordering of the keys.

It’s not an array, as you know :wink:

TMaps in C++ do have ordering.

1 Like

Yes. But for a map, ordering is not part of the deal :slight_smile: