<xutility>: Extend vectorization condition for _Synth_three_way by frederick-vs-ja · Pull Request #5078 · microsoft/STL (original) (raw)

When three_way_comparable_with<const _Elem1&, const _Elem2&> is satisfied, _Synth_three_way behaves same as compare_three_way. So we should also consider three-way comparison via _Synth_three_way to be vectorizable.

The change is expected to make more comparisons between contiguous containers vectorized.

I think existing test coverages are sufficient.