title: Creating instance of nested class
body: <p>I have code like this:</p>
  
  <pre><code>class outer{
     int x;
     class inner{
       int y;
     }
  
     void print(int t_x){
       std::cout &lt;&lt; t_x;
     }
  }
  </code></pre>
  
  <p>Is there a way to create only instance of class inner? And if this is possible, will this object have acces to outer::print function ? </p>