title: How to get N-th type from a tuple?
body: <p>I want to make a template where I can input an index and it will give me the type at that index. I know I can do this with <code>decltype(std::get&lt;N&gt;(tup))</code> but I would like to implement this myself. For example, I would like to do this,</p>
  
  <pre><code>typename get&lt;N, std::tuple&lt;int, bool, std::string&gt;&gt;::type;
  </code></pre>
  
  <p>...and it will give me the type at position <code>N - 1</code> (because arrays indexed starting from 0). How can I do this? Thanks.</p>