We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 907ed77 commit ca9b1d1Copy full SHA for ca9b1d1
libcxx/include/__iterator/common_iterator.h
@@ -63,9 +63,12 @@ class common_iterator {
63
iter_value_t<_Iter> __value_;
64
};
65
66
-public:
67
variant<_Iter, _Sent> __hold_;
+ template<input_or_output_iterator _OtherIter, sentinel_for<_OtherIter> _OtherSent>
68
+ requires (!same_as<_OtherIter, _OtherSent> && copyable<_OtherIter>)
69
+ friend class common_iterator;
70
71
+public:
72
_LIBCPP_HIDE_FROM_ABI common_iterator() requires default_initializable<_Iter> = default;
73
74
_LIBCPP_HIDE_FROM_ABI constexpr common_iterator(_Iter __i) : __hold_(in_place_type<_Iter>, _VSTD::move(__i)) {}
0 commit comments