error</td><td>if the number of data bits does not represent a valid Hamming SECDED code </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af5c36a1f2c74d632192cf9fe29cc5f03" name="af5c36a1f2c74d632192cf9fe29cc5f03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5c36a1f2c74d632192cf9fe29cc5f03">&#9670;&#160;</a></span>encode()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;std::size_t DataBits&gt; </div>
      <table class="memname">
        <tr