@@ -1552,7 +1552,7 @@ _NODISCARD constexpr _Iter_diff_t<_Checked> _Idl_distance1(
1552
1552
template <class _Checked, class _Iter>
1553
1553
_NODISCARD constexpr auto _Idl_distance(const _Iter& _First, const _Iter& _Last) {
1554
1554
// tries to get the distance between _First and _Last if they are random-access iterators
1555
- return _Idl_distance1<_Checked>(_First, _Last, _Iter_cat_t<_Iter>() );
1555
+ return _Idl_distance1<_Checked>(_First, _Last, _Iter_cat_t<_Iter>{} );
1556
1556
}
1557
1557
#endif // _HAS_IF_CONSTEXPR
1558
1558
@@ -1636,7 +1636,7 @@ constexpr void _Debug_order_unchecked2(_FwdIt _First, _Sentinel _Last, _Pr& _Pre
1636
1636
template <class _InIt, class _Sentinel, class _Pr>
1637
1637
constexpr void _Debug_order_unchecked(_InIt _First, _Sentinel _Last, _Pr&& _Pred) {
1638
1638
// test if range is ordered by predicate
1639
- _Debug_order_unchecked2(_First, _Last, _Pred, _Iter_cat_t<_InIt>() );
1639
+ _Debug_order_unchecked2(_First, _Last, _Pred, _Iter_cat_t<_InIt>{} );
1640
1640
}
1641
1641
#endif // _HAS_IF_CONSTEXPR
1642
1642
@@ -1675,8 +1675,8 @@ constexpr void _Debug_order_set_unchecked2(
1675
1675
template <class _OtherIt, class _InIt, class _Pr>
1676
1676
constexpr void _Debug_order_set_unchecked(_InIt _First, _InIt _Last, _Pr&& _Pred) {
1677
1677
// test if range is ordered by predicate
1678
- _Debug_order_set_unchecked2(_First, _Last, _Pred, _Iter_cat_t<_InIt>() ,
1679
- _Priority_tag<is_same_v<_Iter_value_t<_OtherIt>, _Iter_value_t<_InIt>>>() );
1678
+ _Debug_order_set_unchecked2(_First, _Last, _Pred, _Iter_cat_t<_InIt>{} ,
1679
+ _Priority_tag<is_same_v<_Iter_value_t<_OtherIt>, _Iter_value_t<_InIt>>>{} );
1680
1680
}
1681
1681
#endif // _HAS_IF_CONSTEXPR
1682
1682
#endif // _ITERATOR_DEBUG_LEVEL < 2
@@ -1758,7 +1758,7 @@ template <class _InIt, class _Diff>
1758
1758
_CONSTEXPR17 void advance(_InIt& _Where, _Diff _Off) {
1759
1759
// increment iterator by offset, arbitrary iterators
1760
1760
// we remove_const_t before _Iter_cat_t for better diagnostics if the user passes an iterator that is const
1761
- _Advance1(_Where, _Off, _Iter_cat_t<remove_const_t<_InIt>>() );
1761
+ _Advance1(_Where, _Off, _Iter_cat_t<remove_const_t<_InIt>>{} );
1762
1762
}
1763
1763
#endif // _HAS_IF_CONSTEXPR
1764
1764
@@ -1803,7 +1803,7 @@ _CONSTEXPR17 _Iter_diff_t<_RanIt> _Distance1(_RanIt _First, _RanIt _Last, random
1803
1803
1804
1804
template <class _InIt>
1805
1805
_NODISCARD _CONSTEXPR17 _Iter_diff_t<_InIt> distance(_InIt _First, _InIt _Last) {
1806
- return _Distance1(_First, _Last, _Iter_cat_t<_InIt>() );
1806
+ return _Distance1(_First, _Last, _Iter_cat_t<_InIt>{} );
1807
1807
}
1808
1808
#endif // _HAS_IF_CONSTEXPR
1809
1809
@@ -5075,7 +5075,7 @@ _NODISCARD bool equal(const _InIt1 _First1, const _InIt1 _Last1, const _InIt2 _F
5075
5075
_Adl_verify_range(_First1, _Last1);
5076
5076
_Adl_verify_range(_First2, _Last2);
5077
5077
return _Equal_unchecked(_Get_unwrapped(_First1), _Get_unwrapped(_Last1), _Get_unwrapped(_First2),
5078
- _Get_unwrapped(_Last2), _Pass_fn(_Pred), _Iter_cat_t<_InIt1>() , _Iter_cat_t<_InIt2>() );
5078
+ _Get_unwrapped(_Last2), _Pass_fn(_Pred), _Iter_cat_t<_InIt1>{} , _Iter_cat_t<_InIt2>{} );
5079
5079
}
5080
5080
#endif // _HAS_IF_CONSTEXPR
5081
5081
@@ -5468,7 +5468,7 @@ _NODISCARD _CONSTEXPR20 bool _Check_match_counts(
5468
5468
++_Last2;
5469
5469
}
5470
5470
#else // ^^^ _HAS_IF_CONSTEXPR // !_HAS_IF_CONSTEXPR vvv
5471
- _Trim_matching_suffixes(_Last1, _Last2, _Pred, _Iter_cat_t<_FwdIt1>() , _Iter_cat_t<_FwdIt2>() );
5471
+ _Trim_matching_suffixes(_Last1, _Last2, _Pred, _Iter_cat_t<_FwdIt1>{} , _Iter_cat_t<_FwdIt2>{} );
5472
5472
#endif // _HAS_IF_CONSTEXPR
5473
5473
for (_FwdIt1 _Next1 = _First1; _Next1 != _Last1; ++_Next1) {
5474
5474
if (_Next1 == _Find_pr(_First1, _Next1, *_Next1, _Pred)) { // new value, compare match counts
@@ -5729,7 +5729,7 @@ _FwdIt _Rotate_unchecked(_FwdIt _First, _FwdIt _Mid, _FwdIt _Last) {
5729
5729
return _First;
5730
5730
}
5731
5731
5732
- return _Rotate_unchecked1(_First, _Mid, _Last, _Iter_cat_t<_FwdIt>() );
5732
+ return _Rotate_unchecked1(_First, _Mid, _Last, _Iter_cat_t<_FwdIt>{} );
5733
5733
}
5734
5734
5735
5735
template <class _FwdIt>
0 commit comments