Skip to content

Commit

Permalink
<xutility>: Extend vectorization condition for _Synth_three_way (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
frederick-vs-ja authored Nov 14, 2024
1 parent ca1af94 commit 6e56c12
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions stl/inc/xutility
Original file line number Diff line number Diff line change
Expand Up @@ -5895,6 +5895,13 @@ struct _Lex_compare_three_way_memcmp_classify_comp<_Elem1, _Elem2, compare_three
compare_three_way, void>;
};

template <class _Elem1, class _Elem2>
struct _Lex_compare_three_way_memcmp_classify_comp<_Elem1, _Elem2, _Synth_three_way> {
using _Comp = conditional_t<_Lex_compare_memcmp_classify_elements<_Elem1, _Elem2>
&& three_way_comparable_with<const _Elem1&, const _Elem2&>,
_Synth_three_way, void>;
};

template <class _Elem1, class _Elem2>
struct _Lex_compare_three_way_memcmp_classify_comp<_Elem1, _Elem2, _Strong_order::_Cpo> {
using _Comp =
Expand Down

0 comments on commit 6e56c12

Please sign in to comment.