Lines Matching refs:__first

35 __count(_Iter __first, _Sent __last, const _Tp& __value, _Proj& __proj) {  in __count()  argument
37 for (; __first != __last; ++__first) in __count()
38 if (std::__invoke(__proj, *__first) == __value) in __count()
46 __count_bool(__bit_iterator<_Cp, _IsConst> __first, typename _Cp::size_type __n) { in __count_bool() argument
54 if (__first.__ctz_ != 0) { in __count_bool()
55 __storage_type __clz_f = static_cast<__storage_type>(__bits_per_word - __first.__ctz_); in __count_bool()
57 …__storage_type __m = (~__storage_type(0) << __first.__ctz_) & (~__storage_type(0) >> (__clz_f … in __count_bool()
58 …__r = std::__libcpp_popcount(std::__invert_if<!_ToCount>(*__first.__seg_) & __m… in __count_bool()
60 ++__first.__seg_; in __count_bool()
63 for (; __n >= __bits_per_word; ++__first.__seg_, __n -= __bits_per_word) in __count_bool()
64 __r += std::__libcpp_popcount(std::__invert_if<!_ToCount>(*__first.__seg_)); in __count_bool()
68 __r += std::__libcpp_popcount(std::__invert_if<!_ToCount>(*__first.__seg_) & __m); in __count_bool()
75 __count(__bit_iterator<_Cp, _IsConst> __first, __bit_iterator<_Cp, _IsConst> __last, const _Tp& __v… in __count() argument
77 return std::__count_bool<true>(__first, static_cast<typename _Cp::size_type>(__last - __first)); in __count()
78 return std::__count_bool<false>(__first, static_cast<typename _Cp::size_type>(__last - __first)); in __count()
83 count(_InputIterator __first, _InputIterator __last, const _Tp& __value) { in count() argument
85 return std::__count<_ClassicAlgPolicy>(__first, __last, __value, __proj); in count()