|
| reference () _NOEXCEPT |
|
| reference (bitset< _Bits > &_Bitset, size_t _Pos) |
|
constexpr bool | _Subscript (size_t _Pos) const |
|
constexpr bool | operator[] (size_t _Pos) const |
|
reference | operator[] (size_t _Pos) |
|
constexpr | bitset () _NOEXCEPT |
|
constexpr | bitset (unsigned long long _Val) _NOEXCEPT |
|
template<class _Elem , class _Tr , class _Alloc > |
| bitset (const basic_string< _Elem, _Tr, _Alloc > &_Str, _BITSET_SIZE_TYPE _Pos=0, _BITSET_SIZE_TYPE _Count=basic_string< _Elem, _Tr, _Alloc >::npos, _Elem _E0=(_Elem)'0', _Elem _E1=(_Elem)'1') |
|
template<class _Elem > |
| bitset (const _Elem *_Ptr, typename basic_string< _Elem >::size_type _Count=basic_string< _Elem >::npos, _Elem _E0=(_Elem)'0', _Elem _E1=(_Elem)'1') |
|
template<class _Elem , class _Tr , class _Alloc > |
void | _Construct (const basic_string< _Elem, _Tr, _Alloc > &_Str, _BITSET_SIZE_TYPE _Pos, _BITSET_SIZE_TYPE _Count, _Elem _E0, _Elem _E1) |
|
bitset & | operator&= (const bitset &_Right) _NOEXCEPT |
|
bitset & | operator|= (const bitset &_Right) _NOEXCEPT |
|
bitset & | operator^= (const bitset &_Right) _NOEXCEPT |
|
bitset & | operator<<= (size_t _Pos) _NOEXCEPT |
|
bitset & | operator>>= (size_t _Pos) _NOEXCEPT |
|
bitset & | set () _NOEXCEPT |
|
bitset & | set (size_t _Pos, bool _Val=true) |
|
bitset & | reset () _NOEXCEPT |
|
bitset & | reset (size_t _Pos) |
|
bitset | operator~ () const _NOEXCEPT |
|
bitset & | flip () _NOEXCEPT |
|
bitset & | flip (size_t _Pos) |
|
unsigned long | to_ulong () const |
|
unsigned long long | to_ullong () const |
|
template<class _Elem = char, class _Tr = char_traits<_Elem>, class _Alloc = allocator<_Elem>> |
basic_string< _Elem, _Tr, _Alloc > | to_string (_Elem _E0=(_Elem)'0', _Elem _E1=(_Elem)'1') const |
|
size_t | count () const _NOEXCEPT |
|
constexpr size_t | size () const _NOEXCEPT |
|
size_t | hash () const |
|
bool | operator== (const bitset &_Right) const _NOEXCEPT |
|
bool | operator!= (const bitset &_Right) const _NOEXCEPT |
|
bool | test (size_t _Pos) const |
|
bool | any () const _NOEXCEPT |
|
bool | none () const _NOEXCEPT |
|
bool | all () const _NOEXCEPT |
|
bitset | operator<< (size_t _Pos) const _NOEXCEPT |
|
bitset | operator>> (size_t _Pos) const _NOEXCEPT |
|
_Ty | _Getword (size_t _Wpos) const |
|
void | _Tidy (_Ty _Wordval=0) |
|
void | _Trim () |
|
void | _Trim_if (true_type) |
|
void | _Trim_if (false_type) |
|
void | _Xinv () const |
|
void | _Xoflo () const |
|
void | _Xran () const |
|
Enumerator |
---|
_Bitsperword |
|
_Words |
|
int ptrdiff_t
Definition: vcruntime.h:199
#define CHAR_BIT
Definition: limits.h:17
_Ty _Array[_Words+1]
Definition: bitset:491
static constexpr bool _Need_mask
Definition: bitset:131
static constexpr unsigned long long _Mask
Definition: bitset:134
_Ty _Array[_Words+1]
Definition: bitset:491
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<size_t _Bits>
template<class _Elem , class _Tr , class _Alloc >
void _Construct(const basic_string< _Elem, _Tr, _Alloc > &_Str, _BITSET_SIZE_TYPE _Pos, _BITSET_SIZE_TYPE _Count, _Elem _E0, _Elem _E1)
Definition: bitset:173
_Diff _Count
Definition: algorithm:1941
template<size_t _Bits>
template<class _Elem >
void _Construct(const basic_string< _Elem, _Tr, _Alloc > &_Str, _BITSET_SIZE_TYPE _Pos, _BITSET_SIZE_TYPE _Count, _Elem _E0, _Elem _E1)
Definition: bitset:173
_Diff _Count
Definition: algorithm:1941
template<size_t _Bits>
template<class _Elem , class _Tr , class _Alloc >
180 if (_Str.
size() < _Pos)
186 for (_Num = 0; _Num <
_Count; ++_Num)
187 if (!_Tr::eq(_Str[_Pos + _Num], _E0)
188 && !_Tr::eq(_Str[_Pos + _Num], _E1))
195 for (_Pos += _Count, _Num = 0; _Num <
_Count; ++_Num)
196 if (_Tr::eq(_Str[--_Pos], _E1))
void _Xran() const
Definition: bitset:486
bitset & set() _NOEXCEPT
Definition: bitset:258
void _Tidy(_Ty _Wordval=0)
Definition: bitset:454
size_type size() const _NOEXCEPT
Definition: xstring:3023
_Diff _Count
Definition: algorithm:1941
_Mybase::size_type size_type
Definition: xstring:1879
void _Xinv() const
Definition: bitset:476
_Ty _Array[_Words+1]
Definition: bitset:491
_Ty _Array[_Words+1]
Definition: bitset:491
void _Trim()
Definition: bitset:462
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:491
void _Trim_if(true_type)
Definition: bitset:467
_Ty _Array[_Words+1]
Definition: bitset:491
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Xinvalid_argument(_In_z_ const char *)
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Xoverflow_error(_In_z_ const char *)
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Xout_of_range(_In_z_ const char *)
constexpr size_t size() const _NOEXCEPT
Definition: bitset:382
size_t count() const _NOEXCEPT
Definition: bitset:354
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:491
356 const char *
const _Bitsperbyte =
357 "\0\1\1\2\1\2\2\3\1\2\2\3\2\3\3\4"
358 "\1\2\2\3\2\3\3\4\2\3\3\4\3\4\4\5"
359 "\1\2\2\3\2\3\3\4\2\3\3\4\3\4\4\5"
360 "\2\3\3\4\3\4\4\5\3\4\4\5\4\5\5\6"
361 "\1\2\2\3\2\3\3\4\2\3\3\4\3\4\4\5"
362 "\2\3\3\4\3\4\4\5\3\4\4\5\4\5\5\6"
363 "\2\3\3\4\3\4\4\5\3\4\4\5\4\5\5\6"
364 "\3\4\4\5\4\5\5\6\4\5\5\6\5\6\6\7"
365 "\1\2\2\3\2\3\3\4\2\3\3\4\3\4\4\5"
366 "\2\3\3\4\3\4\4\5\3\4\4\5\4\5\5\6"
367 "\2\3\3\4\3\4\4\5\3\4\4\5\4\5\5\6"
368 "\3\4\4\5\4\5\5\6\4\5\5\6\5\6\6\7"
369 "\2\3\3\4\3\4\4\5\3\4\4\5\4\5\5\6"
370 "\3\4\4\5\4\5\5\6\4\5\5\6\5\6\6\7"
371 "\3\4\4\5\4\5\5\6\4\5\5\6\5\6\6\7"
372 "\4\5\5\6\5\6\6\7\5\6\6\7\6\7\7\x8";
373 const unsigned char *_Ptr =
374 (
const unsigned char *)(
const void *)
_Array;
375 const unsigned char *
const _End = _Ptr +
sizeof (
_Array);
377 for ( ; _Ptr != _End; ++_Ptr)
378 _Val += _Bitsperbyte[*_Ptr];
_Ty _Array[_Words+1]
Definition: bitset:491
_FwdIt const _Ty _Val
Definition: algorithm:1938
bitset< _Bits > * _Pbitset
Definition: bitset:76
size_t _Mypos
Definition: bitset:77
void _Trim()
Definition: bitset:462
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:491
void _Xran() const
Definition: bitset:486
_Ty _Array[_Words+1]
Definition: bitset:491
_STD_BEGIN size_t _Hash_seq(const unsigned char *_First, size_t _Count)
Definition: xstddef:330
_Ty _Array[_Words+1]
Definition: bitset:491
bool any() const _NOEXCEPT
Definition: bitset:413
bitset< _Bits > * _Pbitset
Definition: bitset:76
size_t _Mypos
Definition: bitset:77
403 return (!(*
this == _Right));
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:491
_Ty _Getword(size_t _Wpos) const
Definition: bitset:441
433 return (
bitset(*
this) <<= _Pos);
constexpr bitset() _NOEXCEPT
Definition: bitset:125
226 _Array[_Wpos] = _Wordshift <= _Wpos
227 ?
_Array[_Wpos - _Wordshift] : (_Ty)0;
void _Trim()
Definition: bitset:462
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:491
bitset< _Bits > * _Pbitset
Definition: bitset:76
size_t _Mypos
Definition: bitset:77
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:491
_Ty _Getword(size_t _Wpos) const
Definition: bitset:441
438 return (
bitset(*
this) >>= _Pos);
constexpr bitset() _NOEXCEPT
Definition: bitset:125
246 ?
_Array[_Wpos + _Wordshift] : (_Ty)0;
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:491
109 #if _ITERATOR_DEBUG_LEVEL == 0
113 return (_Bits <= _Pos
constexpr bool _Subscript(size_t _Pos) const
Definition: bitset:101
static void _Validate(size_t)
Definition: bitset:96
static void _Validate(size_t)
Definition: bitset:96
reference() _NOEXCEPT
Definition: bitset:66
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:491
_Ty _Getword(size_t _Wpos) const
Definition: bitset:441
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:491
_Ty _Getword(size_t _Wpos) const
Definition: bitset:441
bitset< _Bits > * _Pbitset
Definition: bitset:76
size_t _Mypos
Definition: bitset:77
289 return (
bitset(*this).flip());
constexpr bitset() _NOEXCEPT
Definition: bitset:125
template<size_t _Bits>
bitset< _Bits >::reference |
( |
| ) |
|
|
inlineprivate |
bitset< _Bits > * _Pbitset
Definition: bitset:76
size_t _Mypos
Definition: bitset:77
bitset< _Bits > * _Pbitset
Definition: bitset:76
size_t _Mypos
Definition: bitset:77
void _Tidy(_Ty _Wordval=0)
Definition: bitset:454
284 return (
set(_Pos,
false));
bitset & set() _NOEXCEPT
Definition: bitset:258
void _Tidy(_Ty _Wordval=0)
Definition: bitset:454
void _Xran() const
Definition: bitset:486
_Ty _Array[_Words+1]
Definition: bitset:491
_FwdIt const _Ty _Val
Definition: algorithm:1938
void _Xran() const
Definition: bitset:486
constexpr bool _Subscript(size_t _Pos) const
Definition: bitset:101
template<size_t _Bits>
template<class _Elem = char, class _Tr = char_traits<_Elem>, class _Alloc = allocator<_Elem>>
basic_string<_Elem, _Tr, _Alloc> bitset< _Bits >::to_string |
( |
_Elem |
_E0 = (_Elem)'0' , |
|
|
_Elem |
_E1 = (_Elem)'1' |
|
) |
| const |
|
inlineprivate |
346 for (_Pos = _Bits; 0 < _Pos; )
_Mybase::size_type size_type
Definition: xstring:1879
bool test(size_t _Pos) const
Definition: bitset:406
void reserve(_CRT_GUARDOVERFLOW const size_type _Newcap=0)
Definition: xstring:3056
320 static_assert(
sizeof (
unsigned long long) %
sizeof (_Ty) == 0,
321 "unsigned long long not multiple of _Ty");
324 for (; (
ptrdiff_t)(
sizeof (
unsigned long long) /
sizeof (_Ty)) <= _Wpos;
330 for (; 0 <= --_Wpos; )
void _Xoflo() const
Definition: bitset:481
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:491
_FwdIt const _Ty _Val
Definition: algorithm:1938
312 unsigned long _Ans = (
unsigned long)_Val;
void _Xoflo() const
Definition: bitset:481
_In_ long
Definition: corecrt_wstdlib.h:88
unsigned long long to_ullong() const
Definition: bitset:318
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<size_t _Bits>
constexpr unsigned long long bitset< _Bits >::_Mask = (1ULL << (_Need_mask ? _Bits : 0)) - 1ULL |
|
staticprivate |
The documentation for this class was generated from the following file: