<p>How do you create a static class in C++? I should be able to do something like:</p>

<pre><code>cout &lt;&lt; "bit 5 is " &lt;&lt; BitParser::getBitAt(buffer, 5) &lt;&lt; endl;
</code></pre>

<p>Assuming I created the <code>BitParser</code> class. What would the <code>BitParser</code> class definition look like?</p>

In C++ you want to create a static function of a class (not a static class).
```
```
class BitParser {
public:
  ...
  static ... getBitAt(...) {
  }
};
```
```
You should then be able to call the function using BitParser::getBitAt() without instantiating an object which I presume is the desired result.