---
name: "std::_Base_bitset"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::_Base_bitset"
---

# std::\_Base\_bitset(3)

## NAME

std::\_Base\_bitset\< \_Nw \>

## SYNOPSIS

\#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\]\
 0 is the least significant word.

## 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.

## Member Data Documentation

### template\<size\_t \_Nw\> \_WordT std::\_Base\_bitset\< \_Nw \>::\_M\_w\[\_Nw\]

0 is the least significant word.

## Author

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