ForwardIterator for the bits that are set. Iterators get invalidated when resize / reserve is called.

Synopsis

Declared in <llvm/ADT/BitVector.h>

template<typename BitVectorT>
class const_set_bits_iterator_impl;

Type Aliases

Name

Description

difference_type

Distance between two set‐bit iterators.

iterator_category

Bidirectional iterator category for set‐bit iteration.

pointer

Pointer to a set‐bit index (unused; iterator is not contiguous).

reference

Reference to a set‐bit index.

value_type

Index of a set bit in the parent bit vector.

Member Functions

Name

Description

const_set_bits_iterator_impl [constructor]

Constructors

operator*

Return the index of the current set bit.

operator++

Increment operators

operator‐‐

Decrement operators

operator==

Return true if both iterators point at the same set‐bit index.

operator!=

Return true if the iterators point at different set‐bit indices.

Created with MrDocs