boost::dynamic_bitset::find_previous

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

Synopsis

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

size_type
find_previous(size_type pos) const noexcept;

Throws

Nothing.

Return Value

The highest index i less than pos such that bit i is set, 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( npos ) is the same as find_last().

Created with MrDocs