what is maximum size of std::map ?

Asked by Andrei

I am using Eclipse+ARM Plugin+ GNU ARM Eclipse Complier (arm-none-eabi-gcc ver5.4 2016 q2 ). what is maximum size of std::map ? Kb or count of pairs? Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#1

Hi Andrei,

This question would be more suited to a forum about programming. This forum is dedicated to questions about the GNU ARM embedded toolchain ARM distributes. As to your question, max_size should return a count of pairs. C++11 describes the result of max_size on a container to be the distance between the values returned by begin() and end().

Best regards.

Revision history for this message
Andrei (aswer) said :
#2

when i try to create map<uint8_t, uint8_t> with size more then 7,5 kb (over 520 records) my program calls exit(). (stm32f103rtc6, Flash 256kb, RAM 48kb).
Whether the compiler( GNU ARM embedded) can limit the size of std::map or it's my mistakes?

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.