libstdc++
std::_Base_bitset< _Nw > Struct Template Reference

#include <bitset>

Public Types

typedef unsigned long _WordT
 

Public Member Functions

constexpr _Base_bitset (unsigned long long __val) noexcept
 
template<size_t _Nb>
constexpr bool _M_are_all () const noexcept
 
constexpr void _M_do_and (const _Base_bitset< _Nw > &__x) noexcept
 
constexpr size_t _M_do_count () const noexcept
 
constexpr size_t _M_do_find_first (size_t) const noexcept
 
constexpr size_t _M_do_find_next (size_t, size_t) const noexcept
 
constexpr void _M_do_flip () noexcept
 
constexpr void _M_do_left_shift (size_t __shift) noexcept
 
constexpr void _M_do_or (const _Base_bitset< _Nw > &__x) noexcept
 
constexpr void _M_do_reset () noexcept
 
constexpr void _M_do_right_shift (size_t __shift) noexcept
 
constexpr void _M_do_set () noexcept
 
constexpr unsigned long long _M_do_to_ullong () const
 
constexpr unsigned long _M_do_to_ulong () const
 
constexpr void _M_do_xor (const _Base_bitset< _Nw > &__x) noexcept
 
constexpr const _WordT * _M_getdata () const noexcept
 
constexpr _WordT _M_getword (size_t __pos) const noexcept
 
constexpr _WordT & _M_getword (size_t __pos) noexcept
 
constexpr _WordT _M_hiword () const noexcept
 
constexpr _WordT & _M_hiword () noexcept
 
constexpr bool _M_is_any () const noexcept
 
constexpr bool _M_is_equal (const _Base_bitset< _Nw > &__x) const noexcept
 

Static Public Member Functions

static constexpr _WordT _S_maskbit (size_t __pos) noexcept
 
static constexpr size_t _S_whichbit (size_t __pos) noexcept
 
static constexpr size_t _S_whichbyte (size_t __pos) noexcept
 
static constexpr size_t _S_whichword (size_t __pos) noexcept
 

Public Attributes

_WordT _M_w [_Nw]
 

Detailed Description

template<size_t _Nw>
struct std::_Base_bitset< _Nw >

Base class, general case. It is a class invariant that _Nw will be nonnegative.

See documentation for bitset.

Definition at line 89 of file bitset.

Member Typedef Documentation

◆ _WordT

template<size_t _Nw>
typedef unsigned long std::_Base_bitset< _Nw >::_WordT

Definition at line 91 of file bitset.

Constructor & Destructor Documentation

◆ _Base_bitset() [1/2]

template<size_t _Nw>
std::_Base_bitset< _Nw >::_Base_bitset ( )
inlineconstexprnoexcept

Definition at line 96 of file bitset.

◆ _Base_bitset() [2/2]

template<size_t _Nw>
std::_Base_bitset< _Nw >::_Base_bitset ( unsigned long long __val)
inlineconstexprnoexcept

Definition at line 100 of file bitset.

Member Function Documentation

◆ _M_are_all()

template<size_t _Nw>
template<size_t _Nb>
bool std::_Base_bitset< _Nw >::_M_are_all ( ) const
inlineconstexprnoexcept

Definition at line 229 of file bitset.

◆ _M_do_and()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_and ( const _Base_bitset< _Nw > & __x)
inlineconstexprnoexcept

Definition at line 151 of file bitset.

◆ _M_do_count()

template<size_t _Nw>
size_t std::_Base_bitset< _Nw >::_M_do_count ( ) const
inlineconstexprnoexcept

Definition at line 249 of file bitset.

◆ _M_do_find_first()

template<size_t _Nw>
size_t std::_Base_bitset< _Nw >::_M_do_find_first ( size_t __not_found) const
constexprnoexcept

Definition at line 358 of file bitset.

◆ _M_do_find_next()

template<size_t _Nw>
size_t std::_Base_bitset< _Nw >::_M_do_find_next ( size_t __prev,
size_t __not_found ) const
constexprnoexcept

Definition at line 374 of file bitset.

◆ _M_do_flip()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_flip ( )
inlineconstexprnoexcept

Definition at line 178 of file bitset.

◆ _M_do_left_shift()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_left_shift ( size_t __shift)
constexprnoexcept

Definition at line 277 of file bitset.

◆ _M_do_or()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_or ( const _Base_bitset< _Nw > & __x)
inlineconstexprnoexcept

Definition at line 158 of file bitset.

◆ _M_do_reset()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_reset ( )
inlineconstexprnoexcept

Definition at line 199 of file bitset.

◆ _M_do_right_shift()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_right_shift ( size_t __shift)
constexprnoexcept

Definition at line 303 of file bitset.

◆ _M_do_set()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_set ( )
inlineconstexprnoexcept

Definition at line 185 of file bitset.

◆ _M_do_to_ullong()

template<size_t _Nw>
unsigned long long std::_Base_bitset< _Nw >::_M_do_to_ullong ( ) const
constexpr

Definition at line 341 of file bitset.

◆ _M_do_to_ulong()

template<size_t _Nw>
unsigned long std::_Base_bitset< _Nw >::_M_do_to_ulong ( ) const
constexpr

Definition at line 330 of file bitset.

◆ _M_do_xor()

template<size_t _Nw>
void std::_Base_bitset< _Nw >::_M_do_xor ( const _Base_bitset< _Nw > & __x)
inlineconstexprnoexcept

Definition at line 165 of file bitset.

◆ _M_getdata()

template<size_t _Nw>
const _WordT * std::_Base_bitset< _Nw >::_M_getdata ( ) const
inlineconstexprnoexcept

Definition at line 138 of file bitset.

◆ _M_getword() [1/2]

template<size_t _Nw>
_WordT std::_Base_bitset< _Nw >::_M_getword ( size_t __pos) const
inlineconstexprnoexcept

Definition at line 133 of file bitset.

◆ _M_getword() [2/2]

template<size_t _Nw>
_WordT & std::_Base_bitset< _Nw >::_M_getword ( size_t __pos)
inlineconstexprnoexcept

Definition at line 129 of file bitset.

◆ _M_hiword() [1/2]

template<size_t _Nw>
_WordT std::_Base_bitset< _Nw >::_M_hiword ( ) const
inlineconstexprnoexcept

Definition at line 147 of file bitset.

◆ _M_hiword() [2/2]

template<size_t _Nw>
_WordT & std::_Base_bitset< _Nw >::_M_hiword ( )
inlineconstexprnoexcept

Definition at line 143 of file bitset.

◆ _M_is_any()

template<size_t _Nw>
bool std::_Base_bitset< _Nw >::_M_is_any ( ) const
inlineconstexprnoexcept

Definition at line 240 of file bitset.

◆ _M_is_equal()

template<size_t _Nw>
bool std::_Base_bitset< _Nw >::_M_is_equal ( const _Base_bitset< _Nw > & __x) const
inlineconstexprnoexcept

Definition at line 213 of file bitset.

◆ _S_maskbit()

template<size_t _Nw>
static constexpr _WordT std::_Base_bitset< _Nw >::_S_maskbit ( size_t __pos)
inlinestaticconstexprnoexcept

Definition at line 125 of file bitset.

◆ _S_whichbit()

template<size_t _Nw>
static constexpr size_t std::_Base_bitset< _Nw >::_S_whichbit ( size_t __pos)
inlinestaticconstexprnoexcept

Definition at line 121 of file bitset.

◆ _S_whichbyte()

template<size_t _Nw>
static constexpr size_t std::_Base_bitset< _Nw >::_S_whichbyte ( size_t __pos)
inlinestaticconstexprnoexcept

Definition at line 117 of file bitset.

◆ _S_whichword()

template<size_t _Nw>
static constexpr size_t std::_Base_bitset< _Nw >::_S_whichword ( size_t __pos)
inlinestaticconstexprnoexcept

Definition at line 113 of file bitset.

Member Data Documentation

◆ _M_w

template<size_t _Nw>
_WordT std::_Base_bitset< _Nw >::_M_w[_Nw]

0 is the least significant word.

Definition at line 94 of file bitset.


The documentation for this struct was generated from the following file: