title: C++ Templates and accessing namespaces
body: <p>Let's say I'm using a templated class with something simple like:</p>
  
  <pre><code>template &lt;class T&gt; 
  class MyClass
  </code></pre>
  
  <p>I want to use elements from T's namespace, for example T could be string, and I wanted to use </p>
  
  <pre><code>T::const_iterator myIterator; 
  </code></pre>
  
  <p>...or something like that. How do I achieve that?
  Probably, it's either not possible or very simple, but I have no idea.</p>
  
  <p>Thanks for answers!</p>