title: Forward declaration within a class (not a nested class)
body: <p>I came across this odd forward declaration (or something) where instead of having a normal:</p>
  <pre><code>class A;
  class B{
      A* var;
  }
  </code></pre>
  <p>You can do</p>
  <pre><code>class B{
     class A* var;
  }
  </code></pre>
  <p>Now this might be an elaborated type specifier, but I'm not sure about that.
  I've tried it myself and I had no issues, even made my code a lot more cleaner, but I'm afraid it may cause scoping issues that I'm currently unaware of.</p>
  <p>Does anyone have an insight on this? is this a valid forward deceleration?</p>
  <p>example: <a href="https://youtu.be/EIptJ0YrYg0?t=412" rel="nofollow noreferrer">https://youtu.be/EIptJ0YrYg0?t=412</a></p>