@@ -46,7 +46,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
4646#if _LIBCPP_STD_VER >= 23
4747
4848template <indirectly_readable _Iter>
49- using iter_const_reference_t = common_reference_t <const iter_value_t <_Iter>&&, iter_reference_t <_Iter>>;
49+ using iter_const_reference_t _LIBCPP_NODEBUG = common_reference_t <const iter_value_t <_Iter>&&, iter_reference_t <_Iter>>;
5050
5151template <class _Iter >
5252concept __constant_iterator = input_iterator<_Iter> && same_as<iter_const_reference_t <_Iter>, iter_reference_t <_Iter>>;
@@ -60,12 +60,12 @@ using const_iterator = conditional_t<__constant_iterator<_Iter>, _Iter, basic_co
6060// This doesn't use `conditional_t` to avoid instantiating const_iterator<_Sent> when _Sent is not an input_iterator.
6161template <class _Sent >
6262struct __const_sentinel_impl {
63- using type = _Sent;
63+ using type _LIBCPP_NODEBUG = _Sent;
6464};
6565template <class _Sent >
6666 requires input_iterator<_Sent>
6767struct __const_sentinel_impl <_Sent> {
68- using type = const_iterator<_Sent>;
68+ using type _LIBCPP_NODEBUG = const_iterator<_Sent>;
6969};
7070template <semiregular _Sent>
7171using const_sentinel = __const_sentinel_impl<_Sent>::type;
@@ -104,8 +104,8 @@ template <input_iterator _Iter>
104104class _LIBCPP_TEMPLATE_VIS basic_const_iterator : public __basic_const_iterator_category<_Iter> {
105105 _Iter __current_ = _Iter();
106106
107- using __reference = iter_const_reference_t <_Iter>;
108- using __rvalue_reference = __iter_const_rvalue_reference_t <_Iter>;
107+ using __reference _LIBCPP_NODEBUG = iter_const_reference_t <_Iter>;
108+ using __rvalue_reference _LIBCPP_NODEBUG = __iter_const_rvalue_reference_t <_Iter>;
109109
110110public:
111111 using value_type = iter_value_t <_Iter>;
@@ -322,17 +322,17 @@ class _LIBCPP_TEMPLATE_VIS basic_const_iterator : public __basic_const_iterator_
322322template <class _Type1 , common_with<_Type1> _Type2>
323323 requires input_iterator<common_type_t <_Type1, _Type2>>
324324struct common_type <basic_const_iterator<_Type1>, _Type2> {
325- using type = basic_const_iterator<common_type_t <_Type1, _Type2>>;
325+ using type _LIBCPP_NODEBUG = basic_const_iterator<common_type_t <_Type1, _Type2>>;
326326};
327327template <class _Type1 , common_with<_Type1> _Type2>
328328 requires input_iterator<common_type_t <_Type1, _Type2>>
329329struct common_type <_Type2, basic_const_iterator<_Type1>> {
330- using type = basic_const_iterator<common_type_t <_Type1, _Type2>>;
330+ using type _LIBCPP_NODEBUG = basic_const_iterator<common_type_t <_Type1, _Type2>>;
331331};
332332template <class _Type1 , common_with<_Type1> _Type2>
333333 requires input_iterator<common_type_t <_Type1, _Type2>>
334334struct common_type <basic_const_iterator<_Type1>, basic_const_iterator<_Type2>> {
335- using type = basic_const_iterator<common_type_t <_Type1, _Type2>>;
335+ using type _LIBCPP_NODEBUG = basic_const_iterator<common_type_t <_Type1, _Type2>>;
336336};
337337
338338template <input_iterator _Iter>
0 commit comments