|
| 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 (_ULonglong _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 |
|
_ULonglong | 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:489
_In_ int _Val
Definition: vcruntime_string.h:62
static constexpr bool _Need_mask
Definition: bitset:129
_Ty _Array[_Words+1]
Definition: bitset:489
static constexpr _ULonglong _Mask
Definition: bitset:132
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:171
unsigned int _Count
Definition: xcomplex:668
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:171
unsigned int _Count
Definition: xcomplex:668
template<size_t _Bits>
template<class _Elem , class _Tr , class _Alloc >
178 if (_Str.
size() < _Pos)
184 for (_Num = 0; _Num <
_Count; ++_Num)
185 if (!_Tr::eq(_Str[_Pos + _Num], _E0)
186 && !_Tr::eq(_Str[_Pos + _Num], _E1))
193 for (_Pos += _Count, _Num = 0; _Num <
_Count; ++_Num)
194 if (_Tr::eq(_Str[--_Pos], _E1))
unsigned int _Count
Definition: xcomplex:668
void _Xran() const
Definition: bitset:484
bitset & set() _NOEXCEPT
Definition: bitset:256
void _Tidy(_Ty _Wordval=0)
Definition: bitset:452
size_type size() const _NOEXCEPT
Definition: xstring:1763
_Mybase::size_type size_type
Definition: xstring:762
void _Xinv() const
Definition: bitset:474
_Ty _Array[_Words+1]
Definition: bitset:489
_Ty _Array[_Words+1]
Definition: bitset:489
void _Trim()
Definition: bitset:460
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:489
void _Trim_if(true_type)
Definition: bitset:465
_Ty _Array[_Words+1]
Definition: bitset:489
_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:380
size_t count() const _NOEXCEPT
Definition: bitset:352
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:489
354 const char *
const _Bitsperbyte =
355 "\0\1\1\2\1\2\2\3\1\2\2\3\2\3\3\4"
356 "\1\2\2\3\2\3\3\4\2\3\3\4\3\4\4\5"
357 "\1\2\2\3\2\3\3\4\2\3\3\4\3\4\4\5"
358 "\2\3\3\4\3\4\4\5\3\4\4\5\4\5\5\6"
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 "\2\3\3\4\3\4\4\5\3\4\4\5\4\5\5\6"
362 "\3\4\4\5\4\5\5\6\4\5\5\6\5\6\6\7"
363 "\1\2\2\3\2\3\3\4\2\3\3\4\3\4\4\5"
364 "\2\3\3\4\3\4\4\5\3\4\4\5\4\5\5\6"
365 "\2\3\3\4\3\4\4\5\3\4\4\5\4\5\5\6"
366 "\3\4\4\5\4\5\5\6\4\5\5\6\5\6\6\7"
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 "\3\4\4\5\4\5\5\6\4\5\5\6\5\6\6\7"
370 "\4\5\5\6\5\6\6\7\5\6\6\7\6\7\7\x8";
371 const unsigned char *_Ptr =
372 (
const unsigned char *)(
const void *)
_Array;
373 const unsigned char *
const _End = _Ptr +
sizeof (
_Array);
375 for ( ; _Ptr != _End; ++_Ptr)
376 _Val += _Bitsperbyte[*_Ptr];
_In_ int _Val
Definition: vcruntime_string.h:62
_Ty _Array[_Words+1]
Definition: bitset:489
bitset< _Bits > * _Pbitset
Definition: bitset:76
size_t _Mypos
Definition: bitset:77
void _Trim()
Definition: bitset:460
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:489
void _Xran() const
Definition: bitset:484
_Ty _Array[_Words+1]
Definition: bitset:489
_STD_BEGIN size_t _Hash_seq(const unsigned char *_First, size_t _Count)
Definition: xstddef:335
_Ty _Array[_Words+1]
Definition: bitset:489
bool any() const _NOEXCEPT
Definition: bitset:411
bitset< _Bits > * _Pbitset
Definition: bitset:76
size_t _Mypos
Definition: bitset:77
401 return (!(*
this == _Right));
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:489
_Ty _Getword(size_t _Wpos) const
Definition: bitset:439
431 return (
bitset(*
this) <<= _Pos);
constexpr bitset() _NOEXCEPT
Definition: bitset:123
224 _Array[_Wpos] = _Wordshift <= _Wpos
225 ?
_Array[_Wpos - _Wordshift] : (_Ty)0;
void _Trim()
Definition: bitset:460
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:489
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:489
_Ty _Getword(size_t _Wpos) const
Definition: bitset:439
436 return (
bitset(*
this) >>= _Pos);
constexpr bitset() _NOEXCEPT
Definition: bitset:123
244 ?
_Array[_Wpos + _Wordshift] : (_Ty)0;
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:489
107 #if _ITERATOR_DEBUG_LEVEL == 0
111 return (_Bits <= _Pos
constexpr bool _Subscript(size_t _Pos) const
Definition: bitset:99
static void _Validate(size_t)
Definition: bitset:94
static void _Validate(size_t)
Definition: bitset:94
reference() _NOEXCEPT
Definition: bitset:66
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:489
_Ty _Getword(size_t _Wpos) const
Definition: bitset:439
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:489
_Ty _Getword(size_t _Wpos) const
Definition: bitset:439
bitset< _Bits > * _Pbitset
Definition: bitset:76
size_t _Mypos
Definition: bitset:77
287 return (
bitset(*this).flip());
constexpr bitset() _NOEXCEPT
Definition: bitset:123
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:452
282 return (
set(_Pos,
false));
bitset & set() _NOEXCEPT
Definition: bitset:256
void _Tidy(_Ty _Wordval=0)
Definition: bitset:452
_In_ int _Val
Definition: vcruntime_string.h:62
void _Xran() const
Definition: bitset:484
_Ty _Array[_Words+1]
Definition: bitset:489
void _Xran() const
Definition: bitset:484
constexpr bool _Subscript(size_t _Pos) const
Definition: bitset:99
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 |
344 for (_Pos = _Bits; 0 < _Pos; )
void reserve(size_type _Newcap=0)
Definition: xstring:1792
_Mybase::size_type size_type
Definition: xstring:762
bool test(size_t _Pos) const
Definition: bitset:404
318 static_assert(
sizeof (
_ULonglong) %
sizeof (_Ty) == 0,
319 "unsigned long long not multiple of _Ty");
328 for (; 0 <= --_Wpos; )
void _Xoflo() const
Definition: bitset:479
_In_ int _Val
Definition: vcruntime_string.h:62
int ptrdiff_t
Definition: vcruntime.h:199
_Ty _Array[_Words+1]
Definition: bitset:489
_ULONGLONG _ULonglong
Definition: yvals.h:593
template<size_t _Bits>
unsigned long bitset< _Bits >::to_ulong |
( |
| ) |
const |
|
inlineprivate |
310 unsigned long _Ans = (
unsigned long)_Val;
void _Xoflo() const
Definition: bitset:479
_ULonglong to_ullong() const
Definition: bitset:316
_In_ int _Val
Definition: vcruntime_string.h:62
_ULONGLONG _ULonglong
Definition: yvals.h:593
template<size_t _Bits>
constexpr _ULonglong bitset< _Bits >::_Mask = (1ULL << (_Need_mask ? _Bits : 0)) - 1ULL |
|
staticprivate |
The documentation for this class was generated from the following file: