How to solve bad allocation exception c++

I am inserting the data into a map variable,

map<std::pair<uint32_t, uint32_t>, double>& myMapData

when the size of this variable goes around 21589169 am getting the error message “bad allocation”

How I can solve this issue?


Source: c++

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.