File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
libcxx/include/__flat_set Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 54
54
#include < __type_traits/container_traits.h>
55
55
#include < __type_traits/invoke.h>
56
56
#include < __type_traits/is_allocator.h>
57
+ #include < __type_traits/is_const.h>
57
58
#include < __type_traits/is_nothrow_constructible.h>
58
59
#include < __type_traits/is_same.h>
59
- #include " __type_traits/remove_reference.h"
60
+ #include < __type_traits/remove_reference.h>
60
61
#include < __utility/as_const.h>
61
62
#include < __utility/exception_guard.h>
62
63
#include < __utility/move.h>
@@ -666,7 +667,7 @@ class flat_set {
666
667
667
668
template <class _Self , class _Kp >
668
669
_LIBCPP_HIDE_FROM_ABI static auto __equal_range_impl (_Self&& __self, const _Kp& __key) {
669
- using __iter = _If<__is_const ( __libcpp_remove_reference_t <_Self>) , const_iterator, iterator>;
670
+ using __iter = _If<is_const_v< __libcpp_remove_reference_t <_Self>> , const_iterator, iterator>;
670
671
auto __it = ranges::lower_bound (__self.__keys_ , __key, __self.__compare_ );
671
672
auto __last = __self.__keys_ .end ();
672
673
if (__it == __last || __self.__compare_ (__key, *__it)) {
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ struct __ra_iterator {
52
52
53
53
_LIBCPP_HIDE_FROM_ABI explicit __ra_iterator (_Iterator __iter) : __iter_(std::move(__iter)) {}
54
54
55
- _Iterator __base () const noexcept (noexcept (_Iterator(__iter_))) { return __iter_; }
55
+ _LIBCPP_HIDE_FROM_ABI _Iterator __base () const noexcept (noexcept (_Iterator(__iter_))) { return __iter_; }
56
56
57
57
_LIBCPP_HIDE_FROM_ABI decltype (auto ) operator*() const { return *__iter_; }
58
58
_LIBCPP_HIDE_FROM_ABI decltype (auto ) operator->() const
You can’t perform that action at this time.
0 commit comments