title: Renaming a class in C++
body: <p>I have a class that I would like to reference in my header file, which is in a long chain of nested namespaces: <code>MySpaceA::MySpaceB::MySpaceC::MySpaceD::MyVeryLongNamedClass</code>. I would like to use it under a different name, but not <code>MyVeryLongNamedClass</code> -- something shorter and more useful, like <code>MyClass</code>.</p>
  
  <p>I could put <code>using MySpaceA::MySpaceB::MySpaceC::MySpaceD</code> in my header, but I do not want to import the whole namespace. I would prefer to have some kind of construction like</p>
  
  <p><code>using MyClass = MySpaceA::MySpaceB::MySpaceC::MySpaceD::MyVeryLongNamedClass</code></p>
  
  <p>I know this is possible with name spaces, but I cannot seem to get it to work with classes.</p>
  
  <p>Thank you very much for your help.</p>