<div dir="ltr">Hi Ram,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On 7 November 2016 at 05:30, Ram <span dir="ltr">&lt;<a href="mailto:sourceopen@gmail.com" target="_blank">sourceopen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I would like to calculate the size of my filled up boost::unordered_map including the house keeping. I was thinking of sizeof(boost:unordered_map mymap). I asked this question on stackoverflow but they say that wont help. Can  somebody tell me an easy way to find the size including the housekeeping that it takes?</div><div><br></div><div>The boost::unordered_map stores a std::string as the key and a pointer to my class object as the value.</div></div></blockquote><br>Not sure which platform you are doing this on but if you are using some kind of Linux then this site <a href="http://valgrind.org/">http://valgrind.org/</a> might be useful<br></div><br clear="all"></div><div class="gmail_extra">BW,<br><br><br></div><div class="gmail_extra">Ian<br><br></div><div class="gmail_extra">-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>-- ACCU - Professionalism in programming - <a href="http://www.accu.org" target="_blank">http://www.accu.org</a><br></div>-- My writing - <a href="https://sites.google.com/site/ianbruntlett/" target="_blank">https://sites.google.com/site/ianbruntlett/</a><br><div>-- Free Software page - <a href="https://sites.google.com/site/ianbruntlett/home/free-software" target="_blank">https://sites.google.com/site/ianbruntlett/home/free-software</a><br></div><br> </div></div></div></div></div></div></div>
</div></div></div>