C++ Arbitrary width container
<p>I have a large lookup table that currently needs 12 bits per entry. Is there a standard class that will give me a memory efficient container for storing odd-sized data? I have about a billion items in the table, so I care more about memory efficiency than speed.</p>

<p>I need to be able to get the underlying data and read/write it to a file as well.</p>
