WGH
WGH

Reputation: 3519

Container similar to Android's ArrayMap in C++

Android provides an associative container named ArrayMap, which is implemented with two simple arrays.

This container is supposed to be somewhat slower than other data structures, especially when inserting data, but it is very memory-efficient.

Is there such thing already implemented in C++?

Upvotes: 1

Views: 179

Answers (1)

WGH
WGH

Reputation: 3519

Boost's flat_map and EASTL's vector_map seem to be the analogues of ArrayMap.

Upvotes: 1

Related Questions