Skip to content

Commit abe8ab9

Browse files
committed
Use _LIBCPP_NODEBUG attribute
1 parent d3c014f commit abe8ab9

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

libcxx/include/__ranges/join_with_view.h

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,18 @@ template <input_range _View, forward_range _Pattern>
6161
requires view<_View> && input_range<range_reference_t<_View>> && view<_Pattern> &&
6262
__concatable<range_reference_t<_View>, _Pattern>
6363
class join_with_view : public view_interface<join_with_view<_View, _Pattern>> {
64-
using _InnerRng = range_reference_t<_View>;
64+
using _InnerRng _LIBCPP_NODEBUG = range_reference_t<_View>;
6565

6666
_LIBCPP_NO_UNIQUE_ADDRESS _View __base_ = _View();
6767

6868
static constexpr bool _UseOuterItCache = !forward_range<_View>;
69-
using _OuterItCache = _If<_UseOuterItCache, __non_propagating_cache<iterator_t<_View>>, __empty_cache>;
69+
using _OuterItCache _LIBCPP_NODEBUG =
70+
_If<_UseOuterItCache, __non_propagating_cache<iterator_t<_View>>, __empty_cache>;
7071
_LIBCPP_NO_UNIQUE_ADDRESS _OuterItCache __outer_it_;
7172

7273
static constexpr bool _UseInnerCache = !is_reference_v<_InnerRng>;
73-
using _InnerCache = _If<_UseInnerCache, __non_propagating_cache<remove_cvref_t<_InnerRng>>, __empty_cache>;
74+
using _InnerCache _LIBCPP_NODEBUG =
75+
_If<_UseInnerCache, __non_propagating_cache<remove_cvref_t<_InnerRng>>, __empty_cache>;
7476
_LIBCPP_NO_UNIQUE_ADDRESS _InnerCache __inner_;
7577

7678
_LIBCPP_NO_UNIQUE_ADDRESS _Pattern __pattern_ = _Pattern();
@@ -190,14 +192,14 @@ struct join_with_view<_View, _Pattern>::__iterator
190192
private:
191193
friend join_with_view;
192194

193-
using _Parent = __maybe_const<_Const, join_with_view>;
194-
using _Base = __maybe_const<_Const, _View>;
195-
using _InnerBase = range_reference_t<_Base>;
196-
using _PatternBase = __maybe_const<_Const, _Pattern>;
195+
using _Parent _LIBCPP_NODEBUG = __maybe_const<_Const, join_with_view>;
196+
using _Base _LIBCPP_NODEBUG = __maybe_const<_Const, _View>;
197+
using _InnerBase _LIBCPP_NODEBUG = range_reference_t<_Base>;
198+
using _PatternBase _LIBCPP_NODEBUG = __maybe_const<_Const, _Pattern>;
197199

198-
using _OuterIter = iterator_t<_Base>;
199-
using _InnerIter = iterator_t<_InnerBase>;
200-
using _PatternIter = iterator_t<_PatternBase>;
200+
using _OuterIter _LIBCPP_NODEBUG = iterator_t<_Base>;
201+
using _InnerIter _LIBCPP_NODEBUG = iterator_t<_InnerBase>;
202+
using _PatternIter _LIBCPP_NODEBUG = iterator_t<_PatternBase>;
201203

202204
static_assert(!_Const || forward_range<_Base>, "Const can only be true when Base models forward_range.");
203205

@@ -206,7 +208,7 @@ struct join_with_view<_View, _Pattern>::__iterator
206208
_Parent* __parent_ = nullptr;
207209

208210
static constexpr bool _OuterIterPresent = forward_range<_Base>;
209-
using _OuterIterType = _If<_OuterIterPresent, _OuterIter, std::__empty>;
211+
using _OuterIterType _LIBCPP_NODEBUG = _If<_OuterIterPresent, _OuterIter, std::__empty>;
210212
_LIBCPP_NO_UNIQUE_ADDRESS _OuterIterType __outer_it_ = _OuterIterType();
211213

212214
variant<_PatternIter, _InnerIter> __inner_it_;
@@ -397,8 +399,8 @@ struct join_with_view<_View, _Pattern>::__sentinel {
397399
private:
398400
friend join_with_view;
399401

400-
using _Parent = __maybe_const<_Const, join_with_view>;
401-
using _Base = __maybe_const<_Const, _View>;
402+
using _Parent _LIBCPP_NODEBUG = __maybe_const<_Const, join_with_view>;
403+
using _Base _LIBCPP_NODEBUG = __maybe_const<_Const, _View>;
402404

403405
_LIBCPP_NO_UNIQUE_ADDRESS sentinel_t<_Base> __end_ = sentinel_t<_Base>();
404406

0 commit comments

Comments
 (0)