---
name: "std::Base_bitset"
section: "3"
platform: "linux"
package: "libstdc++5-3.3-doc"
version: "1:3.3.6-15"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/std::Base_bitset"
---

# std::Base\_bitset(3)

## NAME

std::Base\_bitset -

## SYNOPSIS

### Public Types

typedef unsigned long **WordT**\

### Public Member Functions

**Base\_bitset** ()\
 **Base\_bitset** (unsigned long \_\_val)\
 **WordT** & **M\_getword** (size\_t position)\
 **WordT** **M\_getword** (size\_t position) const\
 **WordT** & **M\_hiword** ()\
 **WordT** **M\_hiword** () const\
 void **M\_do\_and** (const **Base\_bitset**\< Nw \> &x)\
 void **M\_do\_or** (const **Base\_bitset**\< Nw \> &x)\
 void **M\_do\_xor** (const **Base\_bitset**\< Nw \> &x)\
 void **M\_do\_left\_shift** (size\_t shift)\
 void **M\_do\_right\_shift** (size\_t shift)\
 void **M\_do\_flip** ()\
 void **M\_do\_set** ()\
 void **M\_do\_reset** ()\
 bool **M\_is\_equal** (const **Base\_bitset**\< Nw \> &x) const\
 bool **M\_is\_any** () const\
 size\_t **M\_do\_count** () const\
 unsigned long **M\_do\_to\_ulong** () const\
 size\_t **M\_do\_find\_first** (size\_t not\_found) const\
 size\_t **M\_do\_find\_next** (size\_t \_\_prev, size\_t not\_found) const\

### Static Public Member Functions

static size\_t **S\_whichword** (size\_t position)\
 static size\_t **S\_whichbyte** (size\_t position)\
 static size\_t **S\_whichbit** (size\_t position)\
 static **WordT** **S\_maskbit** (size\_t position)\

### Public Attributes

**WordT** **M\_w** \[Nw\]\
 *0 is the least significant word.*

## Detailed Description

### template\<size\_t Nw\> struct std::Base\_bitset\< Nw \>

Definition at line 80 of file bitset.

## Member Data Documentation

### template\<size\_t Nw\> WordT std::Base\_bitset\< Nw \>::M\_w\[Nw\]

0 is the least significant word.

Definition at line 85 of file bitset.

## Author

Generated automatically by Doxygen for libstdc++-v3 Source from the source code.
