title: In C++, how can I make typedefs visible to every file in my project?
body: <p>I have a typedef</p>
  
  <pre><code> typedef unsigned int my_type;
  </code></pre>
  
  <p>used in a file. I would like to make it visible across all my files, without
  putting it in a header file included by everything. I don't want to go the header file
  route because as it stands this will be the only declaration in the header file
  (and it seems unnecessary to add a file just for this).</p>
  
  <p>Is there a way to do this?</p>
  
  <p>If instead I had:</p>
  
  <pre><code>typedef X my_type;
  </code></pre>
  
  <p>where X was a class, would I need to include X.h everywhere and have the typedef at the end
  of X.h ?</p>