title: How to restrict access to certain functions or objects to current file?
body: <p>I was wondering if it was possible to restrict access to certain functions or objects declared in a namespace exclusively to other classes in the same file. For instance,</p>
  
  <pre><code>//myheader.h
  
  namespace stuff
  {
    int repair(firstObj obj);
    int doSomethingElse();
    privateObj obj;
  }
  </code></pre>
  
  <p>In this case, I want the function <code>doSomethingElse()</code> and the object <code>obj</code> to be accessible to classes declared in this file only. </p>
  
  <p>Is there some keyword I could use to restrict access?</p>