Finds the distance between <code>First</code> and <code>Last</code>, that is, an <ahref="../Integral_Constant.html">Integral Constant</a><code>D</code> such as <code>advance< First,D >::type</code> is identical to <code>Last</code>.
<tr><td><code>typedef distance<First,Last>::type d;</code></td><td>A model of <ahref="../Integral_Constant.html">Integral Constant</a></td><td><code>[First, Last)</code> is a valid range</td><td></td><td><code>is_same< advance< First,d >::type, Last >::value</code></td></tr>
</table>
<p>
<h3>Complexity</h3>
<p>
Amortized constant time if <code>Iterator</code> is a model of <ahref="../Random_Access_Iterator.html">Random Access Iterator</a>, otherwise linear time.