Lines Matching refs:__pos
180 _LIBCPP_INLINE_VISIBILITY reference __make_ref(size_t __pos) _NOEXCEPT
181 …{return reference(__first_ + __pos / __bits_per_word, __storage_type(1) << __pos % __bits_per_word…
182 …_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR const_reference __make_ref(size_t __pos) const _NOEXCE…
183 …{return const_reference(__first_ + __pos / __bits_per_word, __storage_type(1) << __pos % __bits_pe…
184 _LIBCPP_INLINE_VISIBILITY iterator __make_iter(size_t __pos) _NOEXCEPT
185 {return iterator(__first_ + __pos / __bits_per_word, __pos % __bits_per_word);}
186 _LIBCPP_INLINE_VISIBILITY const_iterator __make_iter(size_t __pos) const _NOEXCEPT
187 {return const_iterator(__first_ + __pos / __bits_per_word, __pos % __bits_per_word);}
476 _LIBCPP_INLINE_VISIBILITY reference __make_ref(size_t __pos) _NOEXCEPT
477 {return reference(&__first_, __storage_type(1) << __pos);}
478 …_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR const_reference __make_ref(size_t __pos) const _NOEXCE…
479 {return const_reference(&__first_, __storage_type(1) << __pos);}
480 _LIBCPP_INLINE_VISIBILITY iterator __make_iter(size_t __pos) _NOEXCEPT
481 {return iterator(&__first_ + __pos / __bits_per_word, __pos % __bits_per_word);}
482 _LIBCPP_INLINE_VISIBILITY const_iterator __make_iter(size_t __pos) const _NOEXCEPT
483 {return const_iterator(&__first_ + __pos / __bits_per_word, __pos % __bits_per_word);}
694 typename basic_string<_CharT,_Traits,_Allocator>::size_type __pos = 0,
706 bitset& operator<<=(size_t __pos) _NOEXCEPT;
707 bitset& operator>>=(size_t __pos) _NOEXCEPT;
710 bitset& set(size_t __pos, bool __val = true);
713 bitset& reset(size_t __pos);
718 bitset& flip(size_t __pos);
752 bool test(size_t __pos) const;
759 bitset operator<<(size_t __pos) const _NOEXCEPT;
761 bitset operator>>(size_t __pos) const _NOEXCEPT;
795 typename basic_string<_CharT,_Traits,_Allocator>::size_type __pos,
799 if (__pos > __str.size())
802 size_t __rlen = _VSTD::min(__n, __str.size() - __pos);
803 for (size_t __i = __pos; __i < __pos + __rlen; ++__i)
811 _CharT __c = __str[__pos + _Mp - 1 - __i];
846 bitset<_Size>::operator<<=(size_t __pos) _NOEXCEPT
848 __pos = _VSTD::min(__pos, _Size);
849 …_VSTD::copy_backward(base::__make_iter(0), base::__make_iter(_Size - __pos), base::__make_iter(_Si…
850 _VSTD::fill_n(base::__make_iter(0), __pos, false);
856 bitset<_Size>::operator>>=(size_t __pos) _NOEXCEPT
858 __pos = _VSTD::min(__pos, _Size);
859 _VSTD::copy(base::__make_iter(__pos), base::__make_iter(_Size), base::__make_iter(0));
860 _VSTD::fill_n(base::__make_iter(_Size - __pos), __pos, false);
875 bitset<_Size>::set(size_t __pos, bool __val)
877 if (__pos >= _Size)
880 (*this)[__pos] = __val;
895 bitset<_Size>::reset(size_t __pos)
897 if (__pos >= _Size)
900 (*this)[__pos] = false;
925 bitset<_Size>::flip(size_t __pos)
927 if (__pos >= _Size)
930 reference r = base::__make_ref(__pos);
1017 bitset<_Size>::test(size_t __pos) const
1019 if (__pos >= _Size)
1022 return (*this)[__pos];
1044 bitset<_Size>::operator<<(size_t __pos) const _NOEXCEPT
1047 __r <<= __pos;
1054 bitset<_Size>::operator>>(size_t __pos) const _NOEXCEPT
1057 __r >>= __pos;