---
name: "__gnu_debug::def_bitset_reference"
section: "3"
platform: "linux"
package: "libstdc++6-doc"
version: "3.4.6-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_debug::def_bitset_reference"
---

# \_\_gnu\_debug::def\_bitset\_reference(3)

## NAME

\_\_gnu\_debug\_def::bitset::reference -

## SYNOPSIS

Inherits **\_\_gnu\_debug::Safe\_iterator\_base**.

### Public Member Functions

**reference** (const **reference** &x)\
 **reference** & **operator=** (bool x)\
 **reference** & **operator=** (const **reference** &x)\
 bool **operator~** () const\
 **operator bool** () const\
 **reference** & **flip** ()\
 void **M\_attach** (Safe\_sequence\_base \*seq, bool constant)\
 void **M\_detach** ()\
 bool **M\_attached\_to** (const Safe\_sequence\_base \*seq) const \
 bool **M\_singular** () const\
 bool **M\_can\_compare** (const Safe\_iterator\_base &x) const\

### Public Attributes

Safe\_sequence\_base \* **M\_sequence**\
 unsigned int **M\_version**\
 Safe\_iterator\_base \* **M\_prior**\
 Safe\_iterator\_base \* **M\_next**\

### Private Types

typedef Base::reference **Base\_ref**\

### Private Member Functions

**reference** (const **Base\_ref** &\_\_base, **bitset** \*seq)\

### Friends

class **bitset**\

## Detailed Description

### template\<size\_t Nb\> class \_\_gnu\_debug\_def::bitset\< Nb \>::reference

Definition at line 50 of file debug/bitset.

## Member Function Documentation

### void \_\_gnu\_debug::Safe\_iterator\_base::M\_attach (Safe\_sequence\_base \* seq, bool constant)` [inherited]`

Attaches this iterator to the given sequence, detaching it from whatever sequence it was attached to originally. If the new sequence is the NULL pointer, the iterator is left unattached.

Definition at line 190 of file debug.cc.

### void \_\_gnu\_debug::Safe\_iterator\_base::M\_detach ()` [inherited]`

Detach the iterator for whatever sequence it is attached to, if any.

Definition at line 220 of file debug.cc.

### bool \_\_gnu\_debug::Safe\_iterator\_base::M\_attached\_to (const Safe\_sequence\_base \* seq) const` [inline, inherited]`

Determines if we are attached to the given sequence.

Definition at line 120 of file safe\_base.h.

### bool \_\_gnu\_debug::Safe\_iterator\_base::M\_singular () const` [inherited]`

Is this iterator singular?

Definition at line 245 of file debug.cc.

### bool \_\_gnu\_debug::Safe\_iterator\_base::M\_can\_compare (const Safe\_iterator\_base & x) const` [inherited]`

Can we compare this iterator to the given iterator `x`? Returns true if both iterators are nonsingular and reference the same sequence.

Definition at line 250 of file debug.cc.

## Member Data Documentation

### Safe\_sequence\_base\* \_\_gnu\_debug::Safe\_iterator\_base::M\_sequence` [inherited]`

The sequence this iterator references; may be NULL to indicate a singular iterator.

Definition at line 55 of file safe\_base.h.

### unsigned int \_\_gnu\_debug::Safe\_iterator\_base::M\_version` [inherited]`

The version number of this iterator. The sentinel value 0 is used to indicate an invalidated iterator (i.e., one that is singular because of an operation on the container). This version number must equal the version number in the sequence referenced by M\_sequence for the iterator to be non-singular.

Definition at line 64 of file safe\_base.h.

### Safe\_iterator\_base\* \_\_gnu\_debug::Safe\_iterator\_base::M\_prior` [inherited]`

Pointer to the previous iterator in the sequence's list of iterators. Only valid when M\_sequence != NULL.

Definition at line 68 of file safe\_base.h.

### Safe\_iterator\_base\* \_\_gnu\_debug::Safe\_iterator\_base::M\_next` [inherited]`

Pointer to the next iterator in the sequence's list of iterators. Only valid when M\_sequence != NULL.

Definition at line 72 of file safe\_base.h.

## Author

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