0

私はboost bimap

#include <iostream>
#include <utility>
#include <boost/bimap.hpp>
#include <boost/bimap/set_of.hpp>
#include <boost/bimap/multiset_of.hpp>

namespace bimaps = boost::bimaps;
typedef boost::bimap<bimaps::set_of<unsigned long long int>,
        bimaps::multiset_of<unsigned long long int > > bimap_reference;
typedef bimap_reference::value_type position;
bimap_reference numbers;

int main()
{
    numbers.insert(position(12345689, 1000000000));
    numbers.insert(position(23456789, 8000000000));   
    return 0;
}

私は約180000000のエントリを持っています。理論的には ~2.7GB のスペースが必要です (180000000*8*2 = 2880000000 バイト = 2880000000/ 1024*1024*1024 = ~2.7GB )。が実際に占めるスペースを見つけたいのですがboost bimap、どうすればそれを行うことができますか。

4

1 に答える 1