Return the index of the first set bit in a bitset at or after an index.

Synopsis

Declared in <folly/container/StdBitset.h>

template<size_t N>
size_t
std_bitset_find_next(
    std::bitset<N> const& bitset,
    size_t start);

Return Value

The index of the first set bit at or after start, or N if none.

Parameters

Name

Description

bitset

The bitset to search.

start

The index at which to start searching.

Created with MrDocs