@@ -612,15 +612,15 @@ class _LIBCPP_TEMPLATE_VIS bitset
612
612
: private __bitset<_Size == 0 ? 0 : (_Size - 1 ) / (sizeof (size_t ) * CHAR_BIT) + 1 , _Size> {
613
613
public:
614
614
static const unsigned __n_words = _Size == 0 ? 0 : (_Size - 1 ) / (sizeof (size_t ) * CHAR_BIT) + 1 ;
615
- typedef __bitset<__n_words, _Size> base ;
615
+ typedef __bitset<__n_words, _Size> __base ;
616
616
617
617
public:
618
- typedef typename base ::reference reference;
619
- typedef typename base ::const_reference const_reference;
618
+ typedef typename __base ::reference reference;
619
+ typedef typename __base ::const_reference const_reference;
620
620
621
621
// 23.3.5.1 constructors:
622
622
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR bitset () _NOEXCEPT {}
623
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR bitset (unsigned long long __v) _NOEXCEPT : base (__v) {}
623
+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR bitset (unsigned long long __v) _NOEXCEPT : __base (__v) {}
624
624
template <class _CharT , __enable_if_t <_IsCharLikeType<_CharT>::value, int > = 0 >
625
625
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 explicit bitset (
626
626
const _CharT* __str,
@@ -681,11 +681,15 @@ public:
681
681
682
682
// element access:
683
683
#ifdef _LIBCPP_ABI_BITSET_VECTOR_BOOL_CONST_SUBSCRIPT_RETURN_BOOL
684
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR bool operator [](size_t __p) const { return base ::__make_ref (__p); }
684
+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR bool operator [](size_t __p) const { return __base ::__make_ref (__p); }
685
685
#else
686
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR const_reference operator [](size_t __p) const { return base::__make_ref (__p); }
686
+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR const_reference operator [](size_t __p) const {
687
+ return __base::__make_ref (__p);
688
+ }
687
689
#endif
688
- _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 reference operator [](size_t __p) { return base::__make_ref (__p); }
690
+ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 reference operator [](size_t __p) {
691
+ return __base::__make_ref (__p);
692
+ }
689
693
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unsigned long to_ulong () const ;
690
694
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unsigned long long to_ullong () const ;
691
695
template <class _CharT , class _Traits , class _Allocator >
@@ -726,54 +730,54 @@ private:
726
730
_CharT __c = __str[__mp - 1 - __i];
727
731
(*this )[__i] = _Traits::eq (__c, __one);
728
732
}
729
- std::fill (base ::__make_iter (__i), base ::__make_iter (_Size), false );
733
+ std::fill (__base ::__make_iter (__i), __base ::__make_iter (_Size), false );
730
734
}
731
735
732
- _LIBCPP_HIDE_FROM_ABI size_t __hash_code () const _NOEXCEPT { return base ::__hash_code (); }
736
+ _LIBCPP_HIDE_FROM_ABI size_t __hash_code () const _NOEXCEPT { return __base ::__hash_code (); }
733
737
734
738
friend struct hash <bitset>;
735
739
};
736
740
737
741
template <size_t _Size>
738
742
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bitset<_Size>&
739
743
bitset<_Size>::operator &=(const bitset& __rhs) _NOEXCEPT {
740
- base ::operator &=(__rhs);
744
+ __base ::operator &=(__rhs);
741
745
return *this ;
742
746
}
743
747
744
748
template <size_t _Size>
745
749
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bitset<_Size>&
746
750
bitset<_Size>::operator |=(const bitset& __rhs) _NOEXCEPT {
747
- base ::operator |=(__rhs);
751
+ __base ::operator |=(__rhs);
748
752
return *this ;
749
753
}
750
754
751
755
template <size_t _Size>
752
756
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bitset<_Size>&
753
757
bitset<_Size>::operator ^=(const bitset& __rhs) _NOEXCEPT {
754
- base ::operator ^=(__rhs);
758
+ __base ::operator ^=(__rhs);
755
759
return *this ;
756
760
}
757
761
758
762
template <size_t _Size>
759
763
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bitset<_Size>& bitset<_Size>::operator <<=(size_t __pos) _NOEXCEPT {
760
764
__pos = std::min (__pos, _Size);
761
- std::copy_backward (base ::__make_iter (0 ), base ::__make_iter (_Size - __pos), base ::__make_iter (_Size));
762
- std::fill_n (base ::__make_iter (0 ), __pos, false );
765
+ std::copy_backward (__base ::__make_iter (0 ), __base ::__make_iter (_Size - __pos), __base ::__make_iter (_Size));
766
+ std::fill_n (__base ::__make_iter (0 ), __pos, false );
763
767
return *this ;
764
768
}
765
769
766
770
template <size_t _Size>
767
771
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bitset<_Size>& bitset<_Size>::operator >>=(size_t __pos) _NOEXCEPT {
768
772
__pos = std::min (__pos, _Size);
769
- std::copy (base ::__make_iter (__pos), base ::__make_iter (_Size), base ::__make_iter (0 ));
770
- std::fill_n (base ::__make_iter (_Size - __pos), __pos, false );
773
+ std::copy (__base ::__make_iter (__pos), __base ::__make_iter (_Size), __base ::__make_iter (0 ));
774
+ std::fill_n (__base ::__make_iter (_Size - __pos), __pos, false );
771
775
return *this ;
772
776
}
773
777
774
778
template <size_t _Size>
775
779
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bitset<_Size>& bitset<_Size>::set() _NOEXCEPT {
776
- std::fill_n (base ::__make_iter (0 ), _Size, true );
780
+ std::fill_n (__base ::__make_iter (0 ), _Size, true );
777
781
return *this ;
778
782
}
779
783
@@ -788,7 +792,7 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bitset<_Size>& bitset<_Size>
788
792
789
793
template <size_t _Size>
790
794
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bitset<_Size>& bitset<_Size>::reset() _NOEXCEPT {
791
- std::fill_n (base ::__make_iter (0 ), _Size, false );
795
+ std::fill_n (__base ::__make_iter (0 ), _Size, false );
792
796
return *this ;
793
797
}
794
798
@@ -810,7 +814,7 @@ inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bitset<_Size> bitset<
810
814
811
815
template <size_t _Size>
812
816
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bitset<_Size>& bitset<_Size>::flip() _NOEXCEPT {
813
- base ::flip ();
817
+ __base ::flip ();
814
818
return *this ;
815
819
}
816
820
@@ -819,19 +823,19 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bitset<_Size>& bitset<_Size>
819
823
if (__pos >= _Size)
820
824
__throw_out_of_range (" bitset flip argument out of range" );
821
825
822
- reference __r = base ::__make_ref (__pos);
826
+ reference __r = __base ::__make_ref (__pos);
823
827
__r = ~__r;
824
828
return *this ;
825
829
}
826
830
827
831
template <size_t _Size>
828
832
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unsigned long bitset<_Size>::to_ulong() const {
829
- return base ::to_ulong ();
833
+ return __base ::to_ulong ();
830
834
}
831
835
832
836
template <size_t _Size>
833
837
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unsigned long long bitset<_Size>::to_ullong() const {
834
- return base ::to_ullong ();
838
+ return __base ::to_ullong ();
835
839
}
836
840
837
841
template <size_t _Size>
@@ -868,13 +872,13 @@ bitset<_Size>::to_string(char __zero, char __one) const {
868
872
869
873
template <size_t _Size>
870
874
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 size_t bitset<_Size>::count() const _NOEXCEPT {
871
- return static_cast <size_t >(std::count (base ::__make_iter (0 ), base ::__make_iter (_Size), true ));
875
+ return static_cast <size_t >(std::count (__base ::__make_iter (0 ), __base ::__make_iter (_Size), true ));
872
876
}
873
877
874
878
template <size_t _Size>
875
879
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bool
876
880
bitset<_Size>::operator ==(const bitset& __rhs) const _NOEXCEPT {
877
- return std::equal (base ::__make_iter (0 ), base ::__make_iter (_Size), __rhs.__make_iter (0 ));
881
+ return std::equal (__base ::__make_iter (0 ), __base ::__make_iter (_Size), __rhs.__make_iter (0 ));
878
882
}
879
883
880
884
#if _LIBCPP_STD_VER <= 17
@@ -896,12 +900,12 @@ _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bool bitset<_Size>::test(siz
896
900
897
901
template <size_t _Size>
898
902
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bool bitset<_Size>::all() const _NOEXCEPT {
899
- return base ::all ();
903
+ return __base ::all ();
900
904
}
901
905
902
906
template <size_t _Size>
903
907
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 bool bitset<_Size>::any() const _NOEXCEPT {
904
- return base ::any ();
908
+ return __base ::any ();
905
909
}
906
910
907
911
template <size_t _Size>
0 commit comments