boost::dynamic_bitset::find_first

Finds the first set bit in *this with an index >= pos, if any.

Synopsis

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

size_type
find_first(size_type pos = 0) const noexcept;

Throws

Nothing.

Return Value

The lowest index i greater than or equal to pos such that bit i is set in *this, or npos if no such index exists.

Parameters

Name

Description

pos

The lower bound (inclusively) to start the search from.

Created with MrDocs