convert uint8_t array to bitset in C++
<p>Is there a quick way to convert an array of uint8_t to a biteset.</p>

<pre><code>uint8_t test[16]; 
// Call a function which populates test[16] with 128 bits
function_call(&amp; test);
for(int i=0; i&lt;16; i++)
  cout&lt;&lt;test[0]; // outputs a byte
cout&lt;&lt;endl;
std:: bitset&lt;128&gt; bsTest;
</code></pre>

<p>I tried this but does not work</p>

<pre><code>bsTest(test);
</code></pre>