boost::dynamic_bitset::find_previous_off

Finds the last unset bit in *this with an index < pos, if any.

Synopsis

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

size_type
find_previous_off(size_type pos) const noexcept;

Throws

Nothing.

Return Value

The highest index i less than pos such that bit i is unset, or npos if no such index exists.

Parameters

Name

Description

pos

The upper bound (exclusively) to start the search from. It can be greater than size(), in which case the whole bitset is searched: find_previous_off( npos ) is the same as find_last_off().

Created with MrDocs