title: Why would you want to put a class in an implementation file?
body: <p>While looking over some code, I ran into the following:</p>
  
  <p>.h file</p>
  
  <pre><code>class ExampleClass
  {
  public:
      // methods, etc
  private:
      class AnotherExampleClass* ptrToClass;
  }
  </code></pre>
  
  <p>.cpp file</p>
  
  <pre><code>class AnotherExampleClass
  {
      // methods, etc
  }
  
  // AnotherExampleClass and ExampleClass implemented 
  </code></pre>
  
  <p>Is this a pattern or something beneficial when working in c++?  Since the class is not broken out into another file, does this work flow promote faster compilation times?  </p>
  
  <p>or is this just the style this developer?</p>