C</code>&#39;s
<code>generate()</code> method.  For example:</p>

<pre><code class="language-swift"> struct MyCollection : CollectionType {
   struct Index : ForwardIndexType { /* implementation hidden */ }
   subscript(i: Index) -&gt; MyElement { /* implementation hidden */ }
   func generate() -&gt; IndexingGenerator&lt;MyCollection&gt; { // &lt;===
     return IndexingGenerator(self)
   }
 }</code></pre>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<code class="inherit