What you are trying to obtain is not easy, I must say.
The static size might be solved by using sizeof, but the size of the
allocated data will be more complicated (and less performant) to compute.
Suppose you have an unordered_map of string to integers.
boost::unordere_map
Hi,
Can anybody please help with this?
Thanks, -R
On Mon, Nov 7, 2016 at 11:00 AM, Ram
wrote: Hi,
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?
The boost::unordered_map stores a std::string as the key and a pointer to my class object as the value.
Thanks, Ram
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Juan :wq