<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62486>62486</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
operator<=> not defined for __wrap_iter
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ojrosten
</td>
</tr>
</table>
<pre>
While it is possible to use three way comparison for iterators coming from e.g. std::array, this does not work for e.g. std::vector.
The culprit appears to be that oeprator<=> is not defined for the iterator wrapper used in the latter.
https://godbolt.org/z/fMdYvvz5Y
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckT2PnDAQhn-NaUaHjM3XFRSX29ClixRdtTJ4AF-8DLKHXe39-sjkexu7mPG8zzw2Mbp5RexE9UlUp8zsvFDo6D1QZFyzgey9-7Y4j-AYXISNYnSDR2CCPSLwEhDhZu4w0mUzwUVaYaIAjjEYphBTwa0zTIEugPmcQ2Qr9IvQLyYEcxfqFXhxESxhhJUYbhS-HzP-777iyBRyEPIk5MvP8-uCMO5-C47BbBuaEBPZkMAMA-F2QAj9KvRJ6M9phRRhcXIr2iOFF_xDC7eQxoS0mwW3HkVvmDHk_-YuzFtMWKoXqp_JDuQ5pzAL1X8I1U9f7Nv1-lG9ZbbT9lk_mwy7om61lG1R19nS1agaHNtyQpx0Kat6ei7GwU5N0TSVsU3mOiWVlpVUsi5qWeelLvSARWuL1pihQVFKvBjnc--vl5SduRh37GpVtnXmzYA-_v7X0KWmp2Gfoyild5Hj32fs2GNHGz64ehR1Pic75-Qq24PvHiQ4XvYhH-kiVJ9m_7qetkDvOLJQ_cEXheoPxB8BAAD__3EA0To">